Post

19 Creating new branches

19 Creating new branches

Command:

1
2
$ cd checks/
$ git branch

Code output:

1
* master

Command:

1
2
$ git branch new-feature
$ git branch

Code output:

1
2
3
* master

  New-feature

Command:

1
$ git checkout new-feature

Code output:

1
Switched to branch 'new-feature'

Command:

1
$ git checkout -b even-better-feature

Code output:

1
Switched to a new branch 'even-better-feature'
This post is licensed under CC BY 4.0 by the author.