Git Cheat Sheet

git init — initialize repository
git add . — stage all changes
git commit -m "msg" — commit staged changes
git push — push to remote
git pull — fetch and merge
git branch — list branches
git checkout -b feature/x — create and switch branch
