标签:class ranch 切换 block constant png dev .com display
首先,我们创建dev
分支,然后切换到dev
分支:
$ git checkout -b dev(等价于
$ git branch dev
$ git checkout dev
) Switched to a new branch ‘dev‘
git branch
命令查看当前分支:
$ git branch
* dev
master
查看分支:git branch
创建分支:git branch <name>
切换分支:git checkout <name>
创建+切换分支:git checkout -b <name>
合并某分支到当前分支:git merge <name>
删除分支:git branch -d <name>
标签:class ranch 切换 block constant png dev .com display
原文地址:http://www.cnblogs.com/chongyao/p/7724348.html