1、创建分支
// 创建本地分支 local_feature01
git branch local_feature01
2、查看分支
// 查看本地所有分支,并且可以显示当前所在分支(当前分支就是前面有 * 号的)
git branch
3、切换分支
// 切换到分支 local_feature01上面
git checkout local_feature01
4、创建并切换分支
// 创建分支 local_feature02,并切换到分支 local_feature02上面
git checkout -b local_feature02
5、合并分支到当前分支
// 将分支 local_feature01 合并到当前分支
git merge local_feature01
6、删除分支
// 删除分支 local_feature01
git branch -d local_feature01