Git Basics (add, commit, push)
Git tracks changes to your code over time. Think of it like a save system: you can always go back to any previous version of your project. The three commands you use every day:
```bash # Stage changes (tell Git what to include) git add . # Save a snapshot with a message git commit -m "feat: add login page" # Send to GitHub git push origin main # See what changed git status # See commit history git log --oneline ``` **Good commit message format:** - `feat:`: new feature - `fix:`: bug fix - `docs:`: documentation - `refactor:`: code cleanup