9

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?

Jaykumar Patel
  • 25,525
  • 12
  • 68
  • 75

1 Answers1

32

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"

or

git config --global core.editor "vim"
Pathros
  • 8,678
  • 14
  • 80
  • 131
halafi
  • 905
  • 2
  • 13
  • 26