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

  • Show on which branch are we on
$ git branch
* main
  • Create a branch and list the branches again.The star indicates the current branch.
$ git branch featurex

$ git branch
  featurex
* main
  • Switch to another branch
$ git checkout featurex
Switched to branch 'featurex'

$ git branch
* featurex
  main

Make some changes to app.pl, and commit them to the repository