创建分支
git branch 分支名
切换分支
git checkout 分支名
查看分支
git log --decorate --oneline
以图形化的方式显示分支
git log --decorate --oneline --graph --all
创建并切换分支
git checkout -b 分支名
合并分支
git merge 分支名
删除分支
git branch -d 分支名