Git

Version control commands, workflows, and common fixes

Printable cheat sheets for Git

How-to guides

Undo the last commit but keep the changes
Reset the last commit while keeping all changes staged and ready to re-commit.
resetundocommitsoft
Stash work in progress including new, untracked files
git stash alone leaves new files behind.
stashuntrackedwipbranches
Find the commit that broke something with git bisect
Binary-search the history between a known good commit and a known bad one until git names the commit that introduced the problem.
bisectdebuggingregressionhistory
List all git-ignored files and folders in a repo
Get a flat list of every file and folder git is currently ignoring.
gitgitignoreignored-filesls-filesstatus