git常用操作

git clone

新建分支

git checkout -b new_branch

切换分支

git checkout branch

删除分支

git branch -d branch

删除远程分支

git push origin :remote_branch

不会做merge,将自己的提交记录放到最前面

git pull --rebase
git rebase

提交代码

git commit

你可能感兴趣的:(git常用操作)