How do you set up Git to use EmEditor as the default text editor?

  1. Open Git Bash and run the following command to set the default editor.
    git config --global core.editor "emeditor.exe -sp"
    
    • See documentation for the configuration variable core.editor.
  2. Whenever you use the commit command, you can write your commit message in EmEditor.

Git commit message