Skip to content
ToolInstant

Git Commands Cheat Sheet

Local

Searchable git cheat sheet for branches, remotes, history, stash and tags, plus undo recipes: last commit, lost branches via reflog, wrong-branch commits.

Loading tool…

Ready · Runs in this browser · nothing uploaded

Developer tools · Free · No upload · No sign-up

How to use the git commands cheat sheet for free

  1. 1Search for what you want to do, like undo commit.
  2. 2Read the explanation and any warning.
  3. 3Copy the commands.

Also useful for: git cheat sheet, git commands list, undo last commit git, git reflog recover branch, git reset vs revert.

  • Completely free, no account needed
  • Your data never leaves your device
  • Works on desktop and mobile

Frequently asked questions

Is this git cheat sheet free?+

Yes. Every tool on ToolInstant is free to use with no sign-up and no limits on how often you use it.

Is my data uploaded anywhere?+

No. Everything is processed inside your browser using JavaScript. Your input never leaves your device.

Does it work on mobile?+

Yes. ToolInstant works in any modern browser on phones, tablets and desktops.

Should I use reset or revert to undo a commit?+

Use revert for commits already pushed to a shared branch: it adds a new commit and keeps history. Use reset only for local commits nobody else has.