In order to tell git which editor to use for editing the commit messages one simply needs to properly configure git. To achieve this one can either navigate into the local directory of a git repository and call git config core.editor EDITOR where EDITOR is the name of the executable of the editor one wants to use. This solution only configures the editor for the current repository. If one wants to use the same editor for all repositories one needs to use the --global flag.