1.创建分支:git branch one 创建名称为one的分支
2.查看本地分支:git branch
3.切换分支:git checkout 切换到one分支
3.1 创建并切换到分支:git checkout -b two 创建并切换到分支two
4.删除分支:git branch -D one 删除分支one,注意删除分支前先切换到其他分支。
5.重命名分支:git branch -m two newtwo 给two分支重命名为newtwo,不用切换到其他分支
6.合并分支