Git学习笔记(二) Git分支
以下命令为git book第三章分支出现过的git命令,能够说出每个命令执行的操作即表明基本掌握git的分支操作,想要精通需要进行实践。
$ git branch <branch-name>
$ git checkout <branch-name>
$ git checkout -b <branch-name>
$ git log --oneline --decorate --graph --all
$ git merge <branch-name>
$ git branch -d <branch-name>
$ git status
$ git branch
$ git branch -v
$ git branch --merged
$ git branch --no-merged
$ git fetch <short-name> <branch-name>
$ git push <short-name> --delete <branch-name>
$ git rebase <branch-name>
$ git rebase [basebranch] [topicbranch]