You can choose the default text editor that Git will use when you need to type a message. Git config is used to set the default editor. Git utilizes your system’s default editor if it isn’t specified.
You can do the following if you want to use a different text editor, such as Emacs. To Change the editor or set an editor, refer below commands.
Contents
emacs
git config --global core.editor 'emacs'
visual studio
git config --global core.editor "code --wait"
Notepad++
git config --global core.editor "'C:/Program Files (x86)/Notepad++/notepad++.exe' -multiInst -notabbar -nosession -noPlugin"
vim
git config --global core.editor "vim"
Also Read:
How to make git use the editor of my choice for commits ?