Instructions

visit original
source on github
Hover over a command and adjust values in inputs.
Click on the command and a box will pop up.
Then you can copy the result to clipboard.

Remember:
git command --help

Global Git configuration is stored in $HOME/.gitconfig (
git config --help
)
Git Basics

master : default development branch
origin : default upstream repository
HEAD : current branch
HEAD^ : parent of HEAD
HEAD~4 : the great-great grandparent of HEAD

Cheat Sheet Notation

$id : notation used in this sheet to represent either a commit id, branch or a tag name
$file : arbitrary file name
$branch : arbitrary branch name