Change default git commit message editor

To change the default commit message editor to emacs, type the following in bash:

git config --global core.editor "emacs"

where you can write the name of your editor in place of emacs