添加代理:
git config --global http.proxy xxx:80
取消代理:
git config --global --unset http.proxy xxx:80
push操作
git pull team dev
git add .
git commit -m "说明"
git push
git remote show origin
回滚到上个版本:
git reset --hard HEAD^
查看历史版本:
git reflog
强制提交:
git push -f
只检出某个文件:
git checkout env-prod.json
强制push:
git push -f
切换到master分支:
git checkout master
拉取master分支:
git pull origin master