Skip to content
StackDecode

Git Command Finder

Find the right git command by describing what you want to do, with danger warnings.

NeweasyRuns in your browser

How it works

Describe what you want in your own words; the finder matches it against the intent, a few synonyms and the command itself, tolerating typos.

  • Safe: does not lose work or rewrite history.
  • Caution: rewrites history or changes shared state (amend, rebase, rename). Fine on your own branch; avoid on commits others have pulled.
  • Destructive: can permanently discard uncommitted changes or commits. Check git status and consider git stash first.

A safety net

Committed work is rarely truly lost: git reflog records every place HEAD has been for a while, so a commit you “deleted” can usually be recovered. Uncommitted changes discarded with reset --hard or restore cannot.

Placeholders like <branch> are yours to replace. Commands use the modern git switch and git restore.