You can set the default text editor that will be used when Git requires you to enter a message. Git utilizes your system’s default editor if it is not specified.
You can use a different text editor, such as Emacs, by doing the following:
git config --global core.editor emacs
Also Read: