Change Git Editor

We all have our preferred editors for composing commit messages. Git allows us to set our preferred editor with the following command. For example, mine is configured to use vim as the default editor.

git config --global core.editor vim