git 命令常用记录

//显示远端分支:
#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

猜你喜欢

转载自blog.csdn.net/chaosxcc/article/details/83038171