sreenivas./courses
Git & GitHub for Beginners — all lessons

MODULE 02 · 3 MIN READ

When to branch (always, basically)

“main stays sacred and always works; everything else happens on a branch.”

A feature, an experiment, a risky fix — git switch -c try-thing, hack freely, then merge if it works or delete if it doesn't. Branches are free. Use them like scratch paper.

This exact habit is how teams of thousands of people work on one codebase without chaos — which is tomorrow's topic.