git rebase --editor=/something/other/than/vim? (for easier squashing) git rebase --editor=/something/other/than/vim? (for easier squashing) git git

git rebase --editor=/something/other/than/vim? (for easier squashing)


Try adding the GIT_EDITOR environment variable before your command, like so:

GIT_EDITOR=<editor of choice> git rebase <...>

For example, to use nano I would type:

GIT_EDITOR=nano git rebase -i abcdef1234


There is an even better option for all your interactive rebase.

https://github.com/sjurba/rebase-editor

It is a custom CLI app written in node specifically for interactive rebase.

To install:

npm install -g rebase-editorgit config --global sequence.editor rebase-editor 

Or with yarn:

yarn global add rebase-editorgit config --global sequence.editor rebase-editor