Initialize a repository
git init [directory]
HEAD is the reference to the current position^[parent index] (e.g. HEAD^2)~[number of in-between commits] (e.g. HEAD~3)HEAD~^4~6)Stage files to commit
git add [file1] [file1] [etc.]
Unstage files
git reset [file1] [file1] [etc.]
Stash temporarily saves changes to switch to another context and revise later
git stash [file1] [file2] [etc.]
Apply a specific stash
git stash apply [index]