查看分支
$ git branch
* master
新建分支
$ git branch dev
$ git branch
dev
* master
切换分支
$ git checkout dev
Switched to branch 'dev'
删除分支
$ git branch -d alibug
Deleted branch alibug (was d325e5c).
合并分支
$ git merge dev
Merge made by the 'recursive' strategy.c.txt | 1 +test.txt | 3 ++-wechat.php | 2 ++3 files changed, 5 insertions(+), 1 deletion(-)create mode 100644 c.txtcreate mode 100644 wechat.php