Note: By default, git will use the system's default editor when it needs you to type a message.
Change the editor
Type the following to set the editor to vim
git config --global core.editor vim
Of course, you might not love vim (and it's probably why you are here). Simply replace vim with your favorite editor like emacs, nano, etc.
Removing the --global flag with set your name and email to the current project only.