10

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
  • 26,836
  • 12
  • 74
  • 76

1 Answers1

39

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
  • 10,042
  • 20
  • 90
  • 156
halafi
  • 1,064
  • 2
  • 16
  • 26