12 分支管理-创建与合并分支

2016-11-04  本文已影响11人  小小机器人

关于分支的理解就不多说了,说不清
http://blog.csdn.net/xiaoputao0903/article/details/23933589?utm_source=tuicool&utm_medium=referral
http://www.liaoxuefeng.com/wiki/0013739516305929606dd18361248578c67b8067c8c017b000/001375840038939c291467cc7c747b1810aab2fb8863508000
http://www.ruanyifeng.com/blog/2012/07/git.html

上图一张

Paste_Image.png
分支命令

查看分支:git branch
创建分支:git branch <name>
切换分支:git checkout <name>
创建+切换分支:git checkout -b <name>
合并某分支到当前分支:git merge <name>
删除分支:git branch -d <name> / git branch -D <name> (强制删除)

Paste_Image.png Paste_Image.png
个人理解:
上一篇 下一篇

猜你喜欢

热点阅读