Repository navigation
Interactive Rebase
An interactive rebase lets you tidy up your recent commits before you share them: put them in another order, fix a message, melt a small fix into the commit it belongs to, or drop a commit. Nibtree shows the commits as a list you edit, so you never touch git's text "todo" file.
A rebase writes new commits, with new hashes, in place of the old ones. That is fine for commits only you have. For commits you already pushed, you will need a force push afterwards, and the app warns you.
There are three ways in. All of them need a checked-out branch, not a detached HEAD. (HEAD is the commit you have checked out; detached means you are on no branch.) No merge, rebase, cherry-pick or revert may be in progress.
- From the Log: right-click a commit and choose Interactively Rebase from Here.... The list holds that commit and every newer one on your branch. See History and Log.
- Git > Interactive Rebase...: pick the oldest commit to rewrite from your branch's latest 200 commits.
-
Git > Rebase... with
--interactiveticked: the button reads Next..., and the list holds the commits your branch has that the target lacks. They are replayed onto that target. See Git Dialogs.

Rebasing 3 commits: one reworded, one squashed into the commit above, with the combined message ready to edit.
The title says how many commits and onto what, for example "Rebasing 3 commits onto 4f2a9c1e". The oldest commit is at the top, the order git applies them in. Each row shows a grip to drag, the action, the short hash, the message, the author and the age.
Pick an action for each row:
| Action | Key | What happens |
|---|---|---|
| Pick | P | Keep the commit |
| Reword | R | Keep the commit and edit its message |
| Edit | E | Stop at the commit to amend it |
| Squash | S | Meld into the commit above and edit the message |
| Fixup | F | Meld into the commit above and keep its message |
| Drop | D | Remove the commit |
Working with the list:
- Click a row (or Tab to it) and press a letter to set its action.
- Up and Down move between rows. Option+Up and Option+Down move the row itself, and so does dragging it by its grip. Press Esc while dragging to put it back.
- Reword opens a box with the commit's message, ready to edit.
- Squash joins the nearest kept commit above it. The last squash of a group gets a box with all their messages one after another, like git does; edit it into one good message. Fixup adds nothing to the message.
- Dropped rows are greyed out.
- Reset puts the list back as it was.
Start Rebasing (or Cmd+Enter) stays grey until you change something. A red note tells you what to fix, for example:
- At least one commit must remain.
- The first commit cannot be squashed or fixed up, as there is nothing above it to meld into.
- A reworded or squashed message cannot be empty.
Two checks may ask you something first:
- Rewrite Pushed Commits: the commits are already on a remote branch, such as origin/main, so the rewrite will need a force push. Click Rebase Anyway to go on.
-
Uncommitted Changes: git needs a clean working tree. Stash and Rebase puts your changes aside, rebases, and brings them back (
git rebase -i --autostash).
Most rebases finish at once, with a note such as "Rebased main: 3 commits". Two things can stop it halfway:
- An Edit row. The rebase stops on that commit and says "Rebase stopped for editing: amend, then Continue Rebase". Change the files, amend the commit (for example with Commit (Amend) in Changes), then click Continue in the banner or Git > Continue Rebase.
- A conflict. Two commits changed the same lines. Resolve it as described in Resolving Conflicts, then continue. You can also Skip Commit, or Abort Rebase to put your branch back as it was before.
When you rewrote pushed commits, finish with Git > Force Push... or the Push dialog's Force push option.
When the range holds merge commits, the list follows git's --rebase-merges mode, which keeps them.

A range with a merge: the rows are grouped by branch, and the merge row can only be picked or dropped.
- Rows are grouped by branch, under headings such as "Current branch: starts on main" or "Merged by 9c1d2e3: starts after ...".
- A merge row has a merge badge and offers only Pick or Drop.
- Dropping a merge also drops the branch it brought in. Those rows go grey: "Dropped with the merge that brought it in".
- You can move or squash a commit only within its own group. It cannot cross into the group of another branch.
When the range has merges, you cannot start from the very first commit of the repository. Start from a later commit.
You made three commits on main: "Cart: discount codes", "Docs: explain the cart API" and "fix typo". Open the Log, right-click "Cart: discount codes" and choose Interactively Rebase from Here.... Drag "fix typo" up under "Cart: discount codes" and press F on it. Press R on the docs commit and improve its message. Click Start Rebasing: your history now reads two clean commits.
These pages are generated from docs/wiki. To correct something, open a pull request against the source file; edits made here are overwritten.
Using Nibtree
- Getting Started
- Welcome Screen
- Workspaces
- Files Panel
- File Operations
- File Icons
- Rounded Panels
- Editor and Tabs
- Pin Reorder and Wrap Tabs
- Single Tab Title
- Split Editor
- New File and Unsaved Changes
- Unload Hidden Tabs
- Editing Code
- Code Appearance
- Markdown Editor
- Image and PDF Preview
- Search Everywhere
- Recent Files
- Navigation Bar
- Find and Replace
- Changes and Commits
- Sign In Prompts
- Commit Box Layout
- Repository Actions
- Commit Options
- Ignoring Files
- Diffs
- Inline Diffs
- Staging View
- Revert a Change
- Resolving Conflicts
- Merge Tool
- Blame
- History and Log
- Merge Commits
- Branches and Tags
- Branches Popup
- Remotes
- Stashes
- Shelf
- Git Menu
- Git Dialogs
- Interactive Rebase
- Worktrees
- AI Agents
- AI Tasks
- AI Usage
- Keep Computer Awake
- Submodules
- Git LFS
- GitHub
- Git Console
- Terminal
- Terminal Features
- Scripts
- Navigation
- Menus
- Settings
- Settings Search
- Color Themes
- Settings Terminal and Automation
- Settings Files
- Updates
- Status Bar and Help
- Notifications
- Memory Use
- Clear Cache
- MCP and CLI
- Git Mergetool
- Keyboard Shortcuts
- Keyboard Shortcuts Editor
- Troubleshooting
- Troubleshooting Git
Developers
- Developer Guide
- Architecture
- Project Layout
- Backend
- How Folder Watching Works
- Folder Watching Bugs We Fixed
- How Workspace Files Work
- How the Preview Scheme Works
- Backend Services
- How Terminal Features Work
- Terminal Bugs We Fixed
- Frontend
- How the Rich Markdown Editor Works
- Rich Markdown Bugs We Fixed
- Git Menu Links
- Menu Keys and Routing
- Frontend Modules
- Blame Bugs We Fixed
- Project Color And Title Bar
- One Diff View
- Diff Bugs We Fixed
- Merge Tool Layouts
- Merge Tool Bugs We Fixed
- Color Theme Bugs We Fixed
- How the Connected Diff Works
- Rounded Panels Bugs We Fixed
- Update Bugs We Fixed
- Status Bar Bugs We Fixed
- MCP and CLI Bugs We Fixed
- Repository Actions Bugs We Fixed
- How the Changes Tab Works
- CodeMirror Patterns
- How the Cursor Works
- How Editor Features Work
- How the Path Bar Works
- Commands and Events
- Settings Reference
- Commands Workspace and Changes
- Commands Branches and Remotes
- Commands History and Extras
- Commands App and Tools
- Testing
- Test Suites
- Debugging
- Debugging with MCP
- Measuring Setting Memory
- How Terminal Memory Is Measured
- How Markdown Diagrams Work
- Releases and CI
- Publishing the Wiki
- Versioning and Changelog
- Browser Version Packages
- Browser Release Checks
- Docker Image
- Platforms and Signing
- Windows Support
- Windows Bugs We Fixed
- Windows MCP and CLI
- Docs and Screenshots
- UI Library
- UI Library MCP
- UI Library Bugs
- UI Library Migration
- Contributing
How features work
- Welcome screen
- Workspaces and folders
- Files panel
- File operations
- File icons
- Editor and tabs
- Pin, reorder and wrap tabs
- Single tab title
- Split editor
- New File and unsaved changes
- Unload hidden tabs
- Editing code
- Code appearance
- Markdown editor
- Image and PDF preview
- Search Everywhere
- Recent Files
- Navigation Bar
- Find and replace
- Changes and commits
- Sign-in prompts
- Commit box layout
- Repository actions
- Commit options
- Ignoring files
- Diffs
- Inline diffs
- Staging view
- Revert a change
- Resolving conflicts
- Merge tool
- Blame
- History and log
- Merge commits
- Commit tabs
- Branches and tags
- Branches popup
- Remotes
- Stashes
- Shelf
- Git menu
- Git dialogs
- Interactive rebase
- Worktrees
- AI agents
- AI usage
- Keep computer awake
- AI tasks
- Submodules
- Git LFS
- GitHub account
- Git Console
- Back and Forward
- Integrated terminal
- Scripts tool window
- Menu bar
- Settings
- Search in Settings
- Color themes
- Rounded panels
- Updates and release channels
- Status bar and help links
- Notifications
- Memory readout and memory log
- Clear Cache
- MCP server and command line tool
- git mergetool mode