
In plain words
A branch is a parallel copy of your project's history where you can make changes safely. The main version usually lives on a branch called main. When you start something new, you create a branch, work there, and later merge it back.
Think of a draft. You copy an essay, try a new introduction on the copy, and only replace the original once you like the result.
git switch -c new-homepage
This creates a branch named new-homepage and moves you onto it.

Every lesson stays free. Tap the thumbs up so we know what works, or say thanks with a soda or a coffee: it pays for hosting and new lessons.


