Despite similar questions that have been posted in the community, I have not seen this specific question addressed.
I am trying to change the default text editor used by git to Sublime. I am using a Windows machine and downloaded Sublime 3.
Initially, I was running the command git config --global core.editor "'C:\\Program Files\\Sublime Text 3\\sublime_text.exe' -n -w" in Git Bash, then when I ran a git commit it did not open an editor (it just used the Git Bash "editor").
However, when I add the flag -m to my git config: --global core.editor "'C:\\Program Files\\Sublime Text 3\\sublime_text.exe' -n -w -m" and run Git commit it now opens up the Notepad editor. 
Note I have not changed any of the path or default text editor settings in Windows, I am only trying to have Sublime open up when running git commands.
 
    
