Branches

Create, switch, and manage branches

Branches let you work on features independently. They're just pointers to commits. Cheap to create.

HEAD main
C1
C2
C3
Terminal
$ git log --oneline
C3 Latest commit
C2 Second commit
C1 Initial commit