Git Command Generator
Stop Googling git commands. Select what you want to do — undo, branch, merge, stash, rebase — and get the exact command with a clear explanation of what it does.
Git Command Generator
Select what you need to do and get the exact git command with a clear explanation. No more Googling git commands.
Undo last commit (keep changes)
git reset --soft HEAD~1Undo last commit (unstage changes)
git reset HEAD~1Undo last commit (discard everything)
git reset --hard HEAD~1Warning: Destructive! All uncommitted changes will be lost.
Unstage a file
git restore --staged {filename}Discard file changes
git restore {filename}Warning: Uncommitted changes to this file will be lost.
Amend last commit message
git commit --amend -m "{message}"←
Select a command from the list to see details and customize parameters.