| Setup & Init |
| git init | gitinit |
| git clone <url> | gitclone<url> |
| git config --global user.name | gitconfig--globaluser.name |
| git config --global user.email | gitconfig--globaluser.email |
| Staging & Committing |
| git status | gitstatus |
| git add <file> | gitadd<file> |
| git add . (stage all) | gitadd. |
| git commit -m "msg" | gitcommit-m"msg" |
| git commit --amend | gitcommit--amend |
| git reset HEAD <file> (unstage) | gitresetHEAD<file> |
| git diff (unstaged changes) | gitdiff |
| git diff --staged | gitdiff--staged |
| Branches |
| git branch (list) | gitbranch |
| git branch <name> (create) | gitbranch<name> |
| git checkout <branch> | gitcheckout<branch> |
| git checkout -b <branch> (create+switch) | gitcheckout-b<branch> |
| git merge <branch> | gitmerge<branch> |
| git branch -d <branch> (delete) | gitbranch-d<branch> |
| git rebase <branch> | gitrebase<branch> |
| Remote |
| git remote -v (list remotes) | gitremote-v |
| git fetch | gitfetch |
| git pull | gitpull |
| git push | gitpush |
| git push -u origin <branch> | gitpush-uorigin<branch> |
| git push --force-with-lease | gitpush--force-with-lease |
| Log & History |
| git log | gitlog |
| git log --oneline | gitlog--oneline |
| git log --graph --oneline | gitlog--graph--oneline |
| git show <commit> | gitshow<commit> |
| git stash | gitstash |
| git stash pop | gitstashpop |
| git reset --hard HEAD | gitreset--hardHEAD |