← All text tools

Git command builder

Pick what you want to do and get the exact git command, with a plain-English explanation.

  • Free
  • No sign-up
  • Works on any device

About Git command builder

Choose what you want to do, such as undo the last commit, create a branch, stash changes or rewrite a message, and get the exact git command with a plain explanation of each option. Notes warn when a command rewrites history or deletes work, so you can pick the safe variant.

How to use Git command builder

  1. Type or paste your text in the box above.
  2. The result appears instantly as you type.
  3. Copy the result or download it as a file.

Why use this tool?

Also known as

Frequently asked questions

How do I undo my last git commit?

Run git reset --soft HEAD~1 to undo the commit but keep changes staged. Use --hard only if you want to discard the changes as well.

Is Git command builder free?

Yes. Git command builder on Toolipedia is free to use, with no sign-up and no watermark.

Is it safe to use?

Yes. Everything is worked out in your browser, and nothing you enter is sent to our server.

Does it work on my phone?

Yes. It works in any modern browser on Android and iPhone, as well as on tablets and computers. There's nothing to install.

Do I need an account?

No. Just open the page and use the tool. There's no sign-up and no email needed.

Related tools