A visual helper for Git interactive rebase.
- Clone this repository
- Build it with
cargo build --release - Copy
./target/release/git-interactive-rebase-editorto your desired location.
Alternativelly, use cargo to build and install at once:
cargo install --path <LOCAL_REPOSITORY_PATH>or:
cargo install --git https://github.com/erdavila/git-interactive-rebase-editor.gitSee the options for cargo install.
Use the sequence.editor configuration when rebasing:
git -c sequence.editor=<PATH_TO_BINARY> rebase -i ...Define an alias:
git config --global alias.rebase-i "-c sequence.editor=<PATH_TO_BINARY> rebase -i"then rebase with:
git rebase-i ...Set the editor:
git config --global sequence.editor=<PATH_TO_BINARY>then rebase with:
git rebase -i ...Start the <PATH_TO_BINARY> without / and with drive name.
E.g.: use C:/... instead of /c/....
Cygwin requires the git-interactive-rebase-editor.sh adapter script to ensure that the editor receives a path in Windows format.
- copy
git-interactive-rebase-editor.shto the same place where the binary is located; - in the commands above, for
<PATH_TO_BINARY>use the path togit-interactive-rebase-editor.shinstead of the path to the binary.
