Interactive reference for 60+ Git commands. Search, copy, and export.
Filter 60+ commands instantly by name, command, or description.
Click to copy any command to your clipboard. Ready to paste in your terminal.
Download as Markdown or print to PDF for offline reference.
Most-used commands are highlighted so you can find them fast.
git reset --soft HEAD~1 to undo the commit but keep your changes staged. Use git reset --hard HEAD~1 to discard everything. See the Undoing section.git merge and git rebase? โผgit reflog to find the commit hash, then git checkout -b branch-name <hash> to recreate it. See the Undoing section.