Git 分支管理

每一种版本控制系统都以某种形式支持分支。使用分支意味着你可以从开发主线上分离开来,然后在不影响主线的同时继续工作。

执行 git init 的时候,缺省情况下 Git 就会为你创建 master 分支。

创建分支命令:

git branch (branchname)
#创建新分支 testing
$ git branch testing
$ git branch
* master
  testing

切换分支命令:

git checkout (branchname)

合并分支命令:

git merge 

删除分支命令:

git branch -d (branchname)
原文地址:https://www.cnblogs.com/q455674496/p/10998382.html