Git An introduction to Git #42

Creating branches with git

Branches allow development to take place outside of the mainline development (often called "master").

Create a new branch:

$ git branch mynewbranch

Switch to a branch:

$ git checkout mynewbranch

Return back to the "master" branch:

$ git checkout master
Copyright © 2009
http://www.pmichaud.com/2009/pres/