GIT_EDITOR editor Source https://www.reddit.com/r/git/comments/7mh49p/is_there_a_way_to_switch_text_editors_temporarily/ use GIT_EDITOR=<editor>, e.g. GIT_EDITOR=vim git rebase -i ...