🌿 Branches 101 — Work Without Breaking Stuff

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

✅ 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

📚 Example: Viewing Branches

Output will appear here...

📸 Snapshots

Preview

⬇️ Download Image