//显示远端分支:
#git show-ref
refs/remotes/origin/remote_branch
建议分支并更新:
git checkout -b mybranch remotes/origin/remote_branch
//更新
git remote update; git pull --rebase
//删除分支work
git branch -D work
//显示所有的分支
git branch -a
代码提交:
git add 文件名
git commit
git push origin HEAD:refs/for/remote_branch
//基于上一次的提交id的提交
git push origin HEAD:refs/changes/672268
扫描二维码关注公众号,回复:
3671065 查看本文章
![](/qrcode.jpg)