Git
上传本地项目到github仓库
1: 本地项目提交
git init
touch .gitignore # 忽略文件
git add xxx # 暂存区
git commit -m "xxx" # 本地仓库
2:github 新建仓库
手动新建一个respository即可
3:关联远程仓库
git remote add origin https://github.com/grdiv/ipm-reconstruct.git # 建立本地与远程连接
4:推送
git push -u origin master # 推送本地到远程的master分支
git commit 提交规范
[fix/feat/purf] <scope> content [footer]
reference
Git Commit Style Guide
git commit 提交规范
git 配置代理
全局:
git config --global http.proxy http://127.0.0.1:7890
git config --global https.proxy https://127.0.0.1:7890
特定网站:
git config --global https.https://github.com.proxy http://192.168.8.111:7890
取消代理:
git config --global --unset http.proxy
git config --global --unset https.proxy
git config --global --unset https.https://github.com.proxy
git 常见命令
查看配置
git config --global --list
git config --local --list

浙公网安备 33010602011771号