title: git rebase -i HEAD ~n gives error unexpected EOF while looking for matching ''
body: <p>I am trying to amend older commit message. As per Git's instruction page, When I type following
      git rebase -i HEAD~3
  I am getting following error. </p>
  
  <pre><code>/usr/local/Cellar/git/2.4.5/libexec/git-core/git-rebase--interactive: eval: line 245: unexpected EOF while looking for matching `''
  /usr/local/Cellar/git/2.4.5/libexec/git-core/git-rebase--interactive: eval: line 246: syntax error: unexpected end of file
  Could not execute editor
  </code></pre>
  
  <p>I had older version of Git(2.2.1) and I updated it through "brew upgrade Git" 
  but still the problem persists.
  What I am doing wrong?</p>