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?
On Windows, if you use Git Bash the default editor will be Vim. Vim is another text editor, like nano or notepad.
By configuring git config core. editor notepad , users can now use notepad.exe as their default editor. Configuring git config format. commitMessageColumns 72 will be picked up by the notepad wrapper and line-wrap the commit message after the user edits it.
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"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With