2013-05-30 131 views

回答

0

假设您远程命名为原点

首先,创建你的分支将自动创建本地
git checkout -b branch-name origin/branch-name

远程分支当你把它推到远程服务器。所以当你感觉它,你可以做
git push origin branch-name

0

简单地创建一个新的分支,而不检查出来:

git branch newbranch existingbranch 

检查出来,并开始工作,你则:

git checkout newbranch 

在一个步骤中完成上述两种:

git checkout -b newbranch existingbranch