Branches in Git allow you to develop features isolated from each other. The main branch is your default branch.
When you create a new branch, Git creates a new pointer to the same commit you're currently on. The Git graph will show two branches pointing to the same commit. When you switch branches, the HEAD pointer moves to the tip of the new branch.
Blue: main branch
Green: feature branch
HEAD: Current working branch