美文网首页
Pro Git 学习笔记 (八, 分支管理)

Pro Git 学习笔记 (八, 分支管理)

作者: 冯斯特罗 | 来源:发表于2017-03-09 11:26 被阅读15次

分支管理

$ git branch
  iss53
* master
  testing

$ git branch -d testing
error: The branch 'testing' is not fully merged.
If you are sure you want to delete it, run 'git branch -D testing'.

因为它包含了还未合并的工作,尝试使用 git branch -d 命令删除它时会失败
如果真的想要删除分支并丢掉那些工作,如同帮助信息里所指出的,可以使用 -D 选项强制删除它。

分支开发工作流

长期分支
lr-branches-1.png
lr-branches-2.png
特性分支

特性分支就是随意的创建分支,合并分支...


topic-branches-1.png
topic-branches-2.png

相关文章

网友评论

      本文标题:Pro Git 学习笔记 (八, 分支管理)

      本文链接:https://www.haomeiwen.com/subject/aihwgttx.html