Branches are literally how developers experiment without nuking the main project.
Think of them like “alternate timelines” — you can test ideas, add features, fix bugs… all without touching the main branch.
📌 Why Branches Matter
They keep your main branch clean
They let you work on features safely
They prevent teammate chaos
They make merging changes way easier
✅ Pro rule: *Never* commit straight to main unless you're fixing a typo or you're feeling dangerous.
📚 Example: Creating & Switching Branches
Output will appear here...
📚 Example: Merging a Branch
Output will appear here...
💡 After merging, delete old branches to keep things clean:
git branch -d feature-login