📖 Concepts
BranchA lightweight, movable pointer to a commit. Branches let you work on multiple features independently.
HEADA special pointer that tells Git which branch (or commit) you currently have checked out.
CheckoutSwitching between branches. Git updates your working directory to match the branch's latest commit.
List existing branches
Run git branch to see all branches. The asterisk marks your current branch.
● List existing branches
○ Create a new branch called "feature"
○ Switch to the "feature" branch
○ Make a change and commit on feature
○ Switch back to main
○ View the branch graph