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

You are reading this post on Joel G Mathew’s tech blog. Joel's personal blog is the Eyrie, hosted here.