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
原文地址:http://www.cnblogs.com/craftor/p/3811575.html