Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Create a branch

$ git branch
* master

$ git branch featurex
$ git branch
  featurex
* master

$ git checkout featurex
Switched to branch 'featurex'
$ git branch
* featurex
  master
  • Alternative that creates a branch and checks it out:
git checkout -b featurex
  • Make some changes to file, and commit it to the repository.
  • Use gitk --all to see the branch.