[dundee] Git Recap

Andrew Clayton andrew at digital-domain.net
Fri Feb 29 16:19:58 GMT 2008


On Fri, 29 Feb 2008 11:45:49 +0000, Barry Carr wrote:


> ** To create a branch:
> 
>    git branch MyNewBranch
> 
> Remember, all that the above has done is create the branch and not
> move you on to it. To see a list of branches just use: git branch. An
> asterisk displayed next to a branch indicates the current branch. A
> branch called master is the default branch that git automatically
> creates when you create a repo
> 
> ** To move on to a branch or change you current branch:
> 
>    git checkout MyNewBranch

You can also create and switch to a branch in one step. 

git checkout -b newbranch



More information about the dundee mailing list