📚Dev Reference

Essential Git Commands

Quick reference for the daily git workflow.

Explanation

Git is the standard for version control. These commands cover 90% of daily use.

Examples

Save
Output
git commit -m "..." 
Update
Output
git pull

Code Examples

Common Commands
git add .
git commit -m "msg"
git push
git pull
git checkout -b branch-name
git status
git log --oneline

💡 Tips

  • Commit often, but only meaningful units of work
  • Always pull before you push to handle conflicts early
  • Use descriptive branch names like feature/login

⚠️ Common Pitfalls

  • Pushing sensitive files like .env (use .gitignore!)