title: How do I make git use the editor of my choice on Windows instead of Notepad.exe?
body: <p>I'm trying to get git use Sublime Text for commit messages and interactive rebases, but whenever I try to run <code>git rebase --interactive</code> or <code>git commit</code>, the editor that comes up is Notepad.</p>
  
  <p>I've configured Sublime Text 3 as my editor by running</p>
  
  <pre><code>git config --global core.editor "'C:/Program Files/Sublime Text 3/subl.exe' -n -w"
  </code></pre>
  
  <p>to tell subl.exe to open a new window and to wait for the output. I've confirmed that my <code>editor</code> setting is set correctly in my .gitconfig:</p>
  
  <pre><code>editor = 'C:/Program Files/Sublime Text 3/subl.exe' -n -w
  </code></pre>
  
  <p>In addtion, I've tried running the <code>subl.exe</code> command from the git bash prompt by itself (on a text file) and verified that Sublime Text does open a new window for the file and waits until the window is closed before returning to the prompt.</p>
  
  <p>What else should I be looking at? It seems like no matter what I do, git tries to use notepad.exe.</p>