Construct complex Git commands visually — undo commits, squash, cherry-pick, rebase, stash, and more — with explanations of what each command does before you run it.
🚀 Launch Free Tool →✅ Undo / reset / revert commits
✅ Squash & rebase builder
✅ Cherry-pick helper
✅ Stash & pop guide
✅ Explanation for every command
Use git reset --soft HEAD~1. This moves the HEAD back one commit but keeps your changes staged. Use --mixed to unstage them, or --hard to discard them entirely.
git revert creates a new commit that undoes a previous commit (safe for shared branches). git reset moves the branch pointer back (rewrites history — dangerous on shared branches).
Use git rebase -i HEAD~N (where N is the number of commits). Mark all but the first as 'squash' or 's' in the interactive editor.