Home βΊDeveloper Tools βΊFree Git Command Builder π οΈ Developer Tools Mar 16, 2026 Β· 3 min read Free Git Command Builder Pick what you want to do and get the exact Git command. What do you want to do? β Pick an action β Undo last commit (keep changes) Undo last commit (discard changes) Undo last N commits (keep changes) Unstage a file Discard changes in a file Revert a specific commit (safe) Create and switch to new branch Delete local branch Delete remote branch Rename current branch Track a remote branch Squash last N commits Amend last commit message Add files to last commit Cherry-pick a commit Rebase onto main Stash changes Pop latest stash List all stashes Apply specific stash Force push (safe) Pull with rebase Set upstream for current branch Fetch and prune dead branches Pretty log (one line per commit) Log with branch graph Blame a file Diff staged changes <button onclick="navigator.clipboard.writeText(this.closest('#git-output').querySelector('pre').textContent);this.textContent='Copied!';setTimeout(()=>this.textContent='Copy',1500)" style="margin-top:0.5em;padding:0.4em 1em;background:#f3f4f6;border:1px solid #d1d5db;border-radius:4px;cursor:pointer;font-size:0.85em;">Copy</button>`; } Covered commands Undo, branches, squash, rebase, cherry-pick, stash, force push, log, blame, and more. Pick from the dropdown β no more googling βhow to undo last git commitβ for the 100th time. Related resources Git cheat sheet Git complete guide π Want the full picture? Git for Developers β The Complete Guide