Git Command Cheat Sheet

Common git commands, ready to copy.

Git Cheat Sheet

Use these handy commands to work with Git repos and branches.

git status — Show the working tree status
git add . — Stage all changes
git commit -m "message" — Commit staged changes
git checkout -b branch — Create and switch to new branch
git push origin branch — Push local branch to remote