LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

git-interactive-rebase-tool

Terminal-based sequence editor for git interactive rebase

TLDR

Use as git sequence editor
$ git rebase -i HEAD~5
copy
Configure as default editor
$ git config --global sequence.editor interactive-rebase-tool
copy

SYNOPSIS

interactive-rebase-tool [options] [todo-file]

DESCRIPTION

interactive-rebase-tool is a full-featured terminal-based sequence editor for git interactive rebase. It provides a visual interface for editing rebase todo files with features like syntax highlighting, undo/redo, and visual indicators.The tool makes it easier to manage complex rebases by providing a clear view of commits and their operations (pick, squash, fixup, reword, edit, drop, etc.).

PARAMETERS

--version

Display version and exit
--help
Display help and exit

KEYBINDINGS

↑/↓ or k/j

Navigate commits
Page Up/Page Down
Page navigation
Home/End
Jump to beginning/end
p
Pick commit
r
Reword commit
e
Edit commit
s
Squash commit
f
Fixup commit
d
Drop commit
b
Toggle break action
E
Edit exec command
v
Toggle visual mode for batch operations
c
Show commit information
Ctrl+z
Undo
Ctrl+y
Redo
!
Open in external editor
?
Display built-in help
w
Save changes
q
Abort rebase

CAVEATS

Must be configured as Git's sequence editor via `git config --global sequence.editor interactive-rebase-tool`. Terminal must support required escape sequences.

HISTORY

interactive-rebase-tool was created to improve the git interactive rebase experience by providing a visual editor instead of editing todo files manually.

SEE ALSO

git-rebase(1), git(1), vim(1)

Copied to clipboard
Kai