创建分支
$ git branch mytestA //仅创建 不会自动切换至新分支去
$ git checkout mytestA //切换至新分支中去
$ git checkout -b mytestA // 加 -b 参数 等同上两句
$ git checkout master
$ git merge mytestA //合并至master上
$ git branch -d mytestA //删除分支 带 -d 参数
$ git log --oneline --decorate [--graph] [--all] //查看各分支当前所指对象 详情查看官网文档。。。
版权声明:本文为czx95110原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。