Version Control Basics

Git tracks changes to your code over time. It's like "undo" on steroids — you can go back to any previous version, experiment safely, and collaborate with others.

🎯 The 5 Commands You Need

git status — See what's changed

git add . — Stage all changes

git commit -m "message" — Save a snapshot

git push — Upload to GitHub

git pull — Download latest changes

The Basic Workflow

# After making changes:
git add .
git commit -m "Add login form"
git push

# That's it! Your code is now backed up on GitHub.

Why Git Matters

Safety Net

Broke something? Go back to when it worked.

Deployment

Vercel auto-deploys when you push to GitHub.

Portfolio

Your GitHub profile shows your projects to potential employers.

💡 Let Claude Help

If you get a Git error, just paste it to Claude: "I got this Git error: [paste error]. How do I fix it?"