git --no-pager diff
git bisect start
git branch -a --contains <commit>
git checkout --ours <pathname>
git checkout --theirs <pathname>
git checkout -m <branchname>
git cherry-pick <commitA>^..<commitB>
git clean -fd
git config --global user.name <username>
git diff @{upstream}
git gc
git grep -i "search pattern"
git log --author=<author>
git log --since=<date_or_time>
git ls-files
git merge <branchname1> <branchname2>
git mv -f <oldfilepath> <newfilepath>
git pull --ff-only upstream <branchname>
git pull --rebase
git push -u <remote> <branchname>
git rebase -i --autosquash HEAD~n
git rebase -i HEAD~<number>
git rebase <branchname> -i
git remote prune origin
git remote set-url origin <url>
git reset --hard
git reset --soft HEAD~1
git reset <commit> --merge
git rev-parse --symbolic-full-name --abbrev-ref HEAD
git show --name-status <commit>
git stash -k
git stash -u
git stash apply stash@{<number>}
git stash clear
git stash show -p
git tag <version_number>
Navigate with the arrow keys or swipe on mobile