title: How can I make Sublime Text the default editor for Git?
body: <p>I have a problem setting Sublime Text 2 as the <code>core.editor</code> with <code>git</code>.</p>
  
  <p>I've read through every post I could find addressing the problem, but still nothing is working for me. I am running Windows.</p>
  
  <p>I have done:</p>
  
  <pre><code>git config --global core.editor "'C:/Program Files/Sublime Text 2/sublime_text.exe'"
  </code></pre>
  
  <p>and tried that with various arguments like <code>-m</code>.  When I open my <code>.gitconfig</code>, this is what is in there:</p>
  
  <pre><code>[user]
      name = Spencer Moran
      email = smoran02@gmail.com
  [core]
      editor = 'C:/Program Files/Sublime Text 2/sublime_text.exe'
  </code></pre>
  
  <p>If I go to Git and type:</p>
  
  <pre><code>README.markdown --edit
  </code></pre>
  
  <p>the README file opens in Notepad, not Sublime Text.</p>
  
  <p>Does anyone have any idea what I'm doing wrong or how I could fix this?</p>