0

git小技巧(5)——“git checkout -b

Posted by nanxiao on 八月 11, 2015 in git小技巧 |

git checkout -b <branch>"创建一个新的branch,并且切换到这个branch上。例如:

[root@localhost git_repo]# git checkout -b new-branch
Switched to a new branch 'new-branch'
[root@localhost git_repo]# git branch
  master
* new-branch

标签:

发表评论

电子邮件地址不会被公开。 必填项已用*标注

Copyright © 2013-2017 我的站点 All rights reserved.
This site is using the Desk Mess Mirrored theme, v2.5, from BuyNowShop.com.