Cheatsheet

Command
What it does
init
Runs git init
stage [path...]
Adds files (defaults to .)
unstage [path...]
Runs git restore --staged
status [--short]
Shows git status (or -sb)
log [--short]
Compact or detailed log
diff [path] [--staged]
Diff working tree (or staged snapshot)
branch [-c <name>]
Lists branches (interactive) or create new
push [remote] [branch]
Pushes using Git defaults
pull [remote] [branch]
Pulls with optional remote/branch
reset ...
Discard changes (--all, --staged, --unstaged, --tracked, --untracked)
sync [remote] [branch]
Fetch, pull, and push in one command
commit ...
Commit helpers: --all, --push, --amend, --no-verify