Git Command Builder
LiveGit Command Builder turns a Git task into the exact commands to run.
Runs in your browser: what you enter is processed on your device and not uploaded to MyToolDock.
Git Command Builder turns a Git task into the exact commands to run.
Runs in your browser: what you enter is processed on your device and not uploaded to MyToolDock.
Git Command Builder turns a Git task into the exact commands to run. It builds commands; it does not run them or look at your repository, so check the branch and commit names first. Messages and names are quoted for the shell you choose.
Look at the label above the command. Anything marked Rewrites history needs care on a branch other people use, and anything marked Discards work cannot be easily undone.
Choose what you want to do, such as undo the last commit, squash commits, rename a branch or delete a remote branch. Fill in the few fields shown and the exact commands appear, with a note on what each one does. Choose bash, PowerShell or cmd so the quoting is right for your shell.
Each task carries a label: Safe, Rewrites history, or Discards work. Read it before you run anything.
Commands from the tasks were run in a real Git repository and the results checked. Undo-soft kept the changes staged, undo-mixed left them in the working folder, and undo-hard removed them. Squashing three commits reduced the commit count by two and used the new message. A commit message containing an apostrophe and quotes was stored exactly as typed. A branch with unmerged work was refused by git branch -d and removed by -D.
It builds commands from fixed templates and does not read your repository. Branch names and hashes are checked, and unsafe input is rejected. Rewriting history needs a force push, and that affects everyone who shares the branch. Interactive rebase opens your editor.
Check the label first. Commands marked Rewrites history or Discards work can lose commits or changes.
It refuses to overwrite commits on the remote that you have not seen, which is safer.
No. It only writes text for you to copy.
Git Command Builder turns a Git task into the exact commands to run. It builds commands; it does not run them or look at your repository, so check the branch and commit names first. Messages and names are quoted for the shell you choose.
The task you want and the names, hashes or messages it needs.
Nothing you enter leaves your browser.
Yes, MyToolDock Git Command Builder is 100% free with no registration, subscriptions, or limits. All features are fully unlocked.
More in Developer Tools · Browse all tools