Branch
ELI5 — The Vibe Check
A branch is like creating a parallel universe for your code. You copy everything, make changes in your universe without breaking the main one, and when you're happy with it, you can merge it back. Everyone can have their own branch to work on.
Real Talk
A branch is a lightweight, movable pointer to a commit. Branches allow you to develop features in isolation from the main codebase. The default branch is typically called 'main' or 'master'.
Show Me The Code
git branch feature/login
git checkout feature/login
# or shorthand:
git checkout -b feature/login
When You'll Hear This
"Create a new branch for that feature." / "Which branch are you working on?"
Related Terms
Checkout
Checkout is like teleporting to a different branch or going back in time to an old version.
Merge
Merge is like combining two parallel universes back into one. You take the changes from your branch and smoosh them into another branch.
Pull Request (PR)
A pull request is like raising your hand in class and saying 'Hey, I made some changes — can someone check my work before we make it official?