In plain words
A branch is a separate line of work in your project where you can try a change without touching the version that already works.
Where you see it
The branch menu on GitHub shows main plus names like add-stripe or fix-login. Push a branch to a repo connected to Vercel and it gets its own preview link, while main keeps serving your real users.
What goes wrong
- Letting the agent work straight on main
Every half-finished experiment lands in the version you deploy. If your host deploys main automatically, users see it within minutes.
- Branches left open for weeks
Main keeps moving while the branch sits, and the merge ends in conflicts: two edits to the same lines that someone has to choose between. Agents tend to choose by guessing.
- Forgetting which branch you're on
You ask for an urgent fix, it lands on last week's experiment, and production never gets it. Run git branch --show-current before you start.
What to tell your agent
Quick check
Sign in to earn +10 XP for itYou want the agent to try a risky redesign of Chirp's feed. Where should it work?