Git open default git editor instead of VIM or any other editor (Git Rebase)

Jaykumar Patel picture Jaykumar Patel · Feb 23, 2015 · Viewed 12.5k times · Source

I recently installed Vim. Now, when I rebase my branch in interactive mode, Git automatically opens Vim.

However, I do not want to open Vim in interactive mode; instead, I want to open default Git interactive mode editor. How can I set the default interactive editor used by Git?

Answer

halafi picture halafi · Feb 23, 2015

I think what you want is to use nano (which is the default text editor on Ubuntu), you can set that up by:

git config --global core.editor "nano"