Git Command Generator
Choose what you want to do; get the exact Git commands, explained.
● Your files are processed locally in your browser and are not uploaded to our servers.
How it works
Each task lists the commands in order, with the values you enter filled in. Commands that rewrite history or delete data are flagged with a warning, and safer alternatives are suggested where they exist.
FAQ
reset or revert?
git revert creates a new commit that undoes changes — safe on shared branches. git reset moves the branch back — only for commits you haven't pushed.