Git Reference
The most useful git commands
git branch
列出所有分支git branch -v
查看各个分支最后一次提交git branch -merged
查看哪些分支合并入当前分支git branch -no-merged
查看哪些分支没有合并入当前分支git branch branch-name
创建分支git checkout branch-name
切换分支git checkout -b branch-name
创建并切换分支git branch -d branch-name
删除分支git branch -D branch-name
强制删除分支git rebase branch-name
更新branch-name分支上的内容到当前分支上git remote -v
显示远程信息git remote show origin
显示本地和远程分支跟踪情况git log --graph --oneline --decorate --all
树状显示所有分支演进路线