Interactive Rebase
Interactive rebase lets you rewrite commit history by modifying individual commits. From the Commit Log panel, press i to open the operation selector.
Accessing Interactive Rebase
- Press
3to focus the Commit Log panel. - Press
ito open the Interactive Rebase option popup.
i is only available in the Commit Log panel when at least one commit exists.
Available Operations
| Operation | Description |
|---|---|
| Drop | Remove the selected commit entirely from history |
| Reword | Edit the commit message of the selected commit |
| Fixup/Squash | Squash two or more selected commits into the oldest selected commit |
Keybindings
Operation Selection Popup
| Key | Action |
|---|---|
↑ or k | Navigate up |
↓ or j | Navigate down |
enter | Confirm selected option |
esc | Cancel |
Reword / Fixup/Squash Commit Input
| Key | Action |
|---|---|
ctrl+e | Submit |
tab | Next field |
shift+tab | Previous field |
ctrl+p | Paste |
ctrl+y | Copy |
esc | Cancel |
Workflows
Drop a Commit
- Navigate to the target commit in the Commit Log panel.
- Press
i. - Select Drop and press
enter. - A confirmation output popup appears showing the result.
Drop permanently removes the commit from history. This rewrites history — do not use on commits already pushed to a shared remote without coordination.
Reword a Commit Message
- Navigate to the target commit.
- Press
i. - Select Reword and press
enter. - A commit selector popup appears. Navigate to confirm the target commit and press
enter. - An input popup opens pre-filled with the existing commit message.
- Edit the Summary and optionally the Description.
- Press
ctrl+eto submit.
Fixup/Squash Commits
Combines two or more selected commits into a single commit. All selected commits are squashed into the oldest selected commit, which becomes the base.
- Press
iin the Commit Log panel. - Select Fixup/Squash and press
enter. - A commit selector popup appears. Select at least 2 commits from the list.
- Press
enterto confirm. All selected commits are squashed into the oldest selected commit. - An input popup opens to edit the combined commit message. Press
ctrl+eto submit.
The oldest selected commit acts as the base — all other selected commits are merged into it. You must select at least 2 commits.
Any merge commits that are newer than the oldest selected commit will be automatically dropped during the operation.