Git Branches: The Fastest Way to Work Without Fear
A branch is basically a pointer to a commit.
That’s why branches are “cheap”:
- Creating a branch doesn’t copy your project files.
- Git just creates another pointer like “I’m pointing to commit X”.

Everyday commands
git switch -c feature/auth
git branch git branch -vv
git switch main
Naming tip
Use short, boring names: feature/login, fix/nav-overflow, chore/bump-deps.
Next
Once you have branches, you’ll need to combine them: