
Loading…
Developer tool
Free, no sign-up. Runs in your browser; nothing is uploaded. Buy the source code: $29 Regular / $69 Extended
Take back local commits and choose what happens to your changes.
Rewrites history or needs care
$ git reset --soft HEAD~1This rewrites local history. If the commits are already pushed, use "Revert a commit" instead.
Need Git Command Builder built into your own product? We build it as a full app, API and admin included. Built in about a week, from $99. Send your requirements or SOW; you get a fixed quote and a delivery date.
The git command builder stays free to use online. If you want the code to run, edit and ship in your own project, get the full source from the DEV3 Marketplace. Instant download, 6 months of support.
Skip the build: ready-made apps with the code included. Buy once, own the source, and try each one live first.


Enterprise SaaS Starters
from $99
Live demo
Enterprise SaaS Starters
from $99
Live demo
Enterprise SaaS Starters
from $99
Live demo
Enterprise SaaS Starters
from $99
Live demo
Enterprise SaaS Starters
from $99
Live demo
Enterprise SaaS Starters
from $99
Live demo
Enterprise SaaS Starters
from $99
Live demoGit has hundreds of flags, and the right command for "undo that" depends on whether you pushed, whether you want to keep your changes and whether other people share the branch. This builder asks those questions and writes the command for you.
git status and git log --oneline -5 before any command that changes history.--force-with-lease instead of --force.git branch backup before a big rebase. It costs nothing.git reflog before trying more commands.The tool never reads your repository. Values you type stay in this page and are not saved or sent anywhere.
No. It only writes the commands for you to copy. Nothing touches your files, and nothing is sent to a server. You decide when and where to paste them.
Choose "Undo the last commit(s)". Use --soft to keep the changes staged, --mixed to keep them unstaged, or --hard to throw them away. If the commit is already pushed to a shared branch, use "Revert a commit" instead, which adds a new commit rather than rewriting history.
Safe commands only read or add history. Caution commands rewrite commits or branches, which is fine locally but needs coordination once pushed. The red label marks commands that can permanently discard uncommitted work, such as reset --hard, clean and discarding file changes.
--force overwrites the remote branch no matter what. --force-with-lease refuses if someone else pushed since you last fetched, so you cannot silently erase a teammate's commits. Use the lease form whenever you must rewrite published history.
Usually yes. Run git reflog to see where HEAD has been, then create a branch or reset to that hash. The "Recover lost commits or branches" task writes the exact steps. Reflog entries last about 90 days by default.
Yes. Branch names, paths and messages are quoted for a POSIX shell, so spaces, quotes and dollar signs cannot break out of the command. Names that git itself would reject, such as ones with spaces or "..", are flagged.