Setting up your git environment
Set the editor you want to use for commit messages, vim, nano, emacs, notepad++, vscode,
whatever your favorite editor is.
In this example, I am setting my editor for commit messages to vim.
git config --global core.editor vim
Note this doesn’t mean you have to edit all code with vim.
This just means git will open vim when it wants you to write a commit message