Local

Initialize

Initialize a repository

git init [directory]

Relative commits

Add

Stage files to commit

git add [file1] [file1] [etc.]

Unstage files

git reset [file1] [file1] [etc.]

Stash

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]