On 12 October 2010 11:58, David <da...@silveregg.co.jp> wrote:
> On 10/12/2010 06:48 PM, Pierre GM wrote:
>>
>> Corollary: how do I branch from a branch ?
>
> You use the branch command:
>
> git branch target_branch source_branch
>
> But generally, if you want to create a new branch to start working on
> it, you use the -b option of checkout:
>
> git branch -b target_branch source_branch

Minor typo alert (to avoid confusing people). The above command should be:

git checkout -b new_branch source_branch

>
> which is equivalent to
>
> git branch target_branch source_branch
> git checkout target_branch

Cheers,
Scott
_______________________________________________
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to