01What is Git Interactive Rebase Planner?
When you run git rebase -i, git opens an editor with a todo list. Each line names a command, a commit hash and its subject. Editing that file in a terminal editor is easy to get wrong, especially when you are moving lines around. This planner lets you do the same work with buttons and dropdowns, then gives you text you can paste into the editor. Paste the output of git log --oneline. That output is newest first, but the rebase todo list runs top to bottom from the oldest commit, so the tool reverses the order for you. Decorations such as (HEAD -> feat) are removed, and the asterisks and pipes from --graph output are ignored. Hashes can be anywhere from 4 to 64 hex characters, so full hashes from a custom --format work too. Lines that do not start with a hex hash are skipped and listed in a warning so you can see what was left out. For each commit you choose one action. The git-rebase documentation describes them. pick applies the commit as it is. reword stops so you can change the message. edit stops after applying the commit so you can amend it. squash folds the commit into the one above it and joins both messages. fixup folds it in and throws away its message. fixup -c keeps only that commit's message and opens an editor, and fixup -C does the same without the editor. drop removes the commit; the docs also say you can delete the line instead, and a checkbox lets you choose either style. Another option prints the one-letter short forms such as p and f. A worked example: paste three commits where the newest is "Fix typo in login" and set it to fixup. The output is pick a1b2c3d Add login form, then pick b2c3d4e Add login tests, then fixup c3d4e5f Fix typo in login. The preview shows two resulting commits, with the typo fix folded into the tests commit. Moving the fix up under the form commit would fold it there instead. The suggested command is git rebase -i HEAD~3. The tool also flags a plan where the first kept commit is squash or fixup, since there is nothing above it to fold into. It warns when every commit is dropped and when a hash appears twice. Limits: the tool does not see your repository. It cannot tell whether reordering will cause conflicts, and it does not handle merge commits, exec, break, label or the --rebase-merges commands. The HEAD~N suggestion is only right when the pasted commits are the most recent ones on a linear branch. Everything runs in your browser.
Developers who tidy up a branch's commits before opening or merging a pull request. The tool runs entirely in your browser, so your data never leaves your device.
02How to use Git Interactive Rebase Planner
- Run git log --oneline -n 10 (or however many commits you want) and paste the output.
- Use the up and down arrows to put commits in the order you want, oldest at the top.
- Pick an action for each commit from its dropdown.
- Fix any error shown, such as a squash on the first line.
- Run the suggested git rebase -i HEAD~N, replace the editor contents with the copied todo list, then save and close.
03Worked examples
- Input:
c3d4e5f (HEAD -> feat) Fix typo in login b2c3d4e Add login tests a1b2c3d Add login form (newest commit set to fixup) - Result:
pick a1b2c3d Add login form pick b2c3d4e Add login tests fixup c3d4e5f Fix typo in login - Order is reversed so the oldest commit is first. Suggested command: git rebase -i HEAD~3.
- Input:
Same plan with short command names - Result:
p a1b2c3d Add login form p b2c3d4e Add login tests f c3d4e5f Fix typo in login - Input:
Clean up a feature branch example: Add retry to API client = fixup, fix review comments = reword, the last two = drop, drop lines left out - Result:
pick 5b4a392 Add API client fixup 6c5b4a3 Add retry to API client reword 7d6c5b4 fix review comments - The preview shows two resulting commits. The second one stops for a new message.
- Input:
$ git log --oneline -n 3 4d3c2b1 (HEAD -> fix/cache, origin/fix/cache) Bump cache TTL 3c2b1a0 Add cache metrics (END) 2b1a09f Add Redis cache layer - Result:
pick 2b1a09f Add Redis cache layer pick 3c2b1a0 Add cache metrics pick 4d3c2b1 Bump cache TTL Skipped: "$ git log --oneline -n 3", "(END)" - The prompt line and the pager marker are not commits, so they are listed as skipped.
- Input:
Same paste with the oldest commit (2b1a09f) set to squash - Result:
Error: The first kept commit (2b1a09f) uses "squash", but there is no earlier commit to fold it into. Use pick instead. - Git would refuse this todo list, so the tool stops you first.
04Common use cases
- Squashing review-fix commits into the commit they fix before merging a pull request
- Reordering commits so a refactor lands before the feature that depends on it
- Dropping debug or WIP commits from a feature branch
- Marking several commit messages for rewording in one pass
- Showing a teammate what a rebase plan will do before anyone rewrites history
- Turning a messy terminal paste, with prompt lines and pager markers, into a clean todo list
05Tips
- squash and fixup always fold into the nearest kept commit above them, so move a fix directly under its target first.
- Use fixup -C when you want the later commit's message to replace the earlier one without opening an editor.
- Keep a backup branch with git branch backup before rewriting history, so you can reset if the result is wrong.
- If you have already pushed the branch, you will need git push --force-with-lease after the rebase.
- Untick the drop-lines option if you prefer the todo list to simply leave dropped commits out.
06Related concepts
Interactive rebase, git-rebase-todo, Squash commit, Fixup commit, Commit history, Force push.
Frequently Asked Questions
What is Git Interactive Rebase Planner?
Git Interactive Rebase Planner is a free, browser-based developer tool on AIDToolStack. Paste git log --oneline, reorder commits, set pick, reword, edit, squash, fixup or drop, and copy a ready git-rebase-todo list. Runs in your browser. It requires no installation or sign-up and works entirely in your browser.
Is Git Interactive Rebase Planner free to use?
Yes. No sign-up, no fees and no usage cap.
Does Git Interactive Rebase Planner store my data?
No. It runs in your browser; nothing is uploaded.