码迷,mamicode.com
首页 > 其他好文 > 详细

Git Note - Branch

时间:2014-07-16 23:09:50      阅读:164      评论:0      收藏:0      [点我收藏+]

标签:c   new   user   git   ash   ace   

1. add a new branch

cd workspace
git branch user1/newbranch1
git checkout user1/newbranch1

or

git checkout -b user2/newbranch2

2. when user1/newbranch1 development finished, merge it into master branch.

git checkout master
git merge user1/newbranch1

delete branch user1/newbranch1

git branch -d user1/newbranch1

Git Note - Branch,布布扣,bubuko.com

Git Note - Branch

标签:c   new   user   git   ash   ace   

原文地址:http://www.cnblogs.com/craftor/p/3811575.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!