Git create branch

Create branch without switching

$ git branch NEWBRANCHNAME
## list branches
$ git branch

Create branch and switch to it

$ git checkout -b NEWBRANCHNAME
## list branches
$ git branch
Share this article: share on Google+ share on facebook share on linkedin tweet this submit to reddit

Comments

Click here to write/view comments