title: git rebase fatal: Needed a single revision invalid upstream –i
body: <p>I am trying to squanshing several commits together. When I used</p>
  
  <pre><code>git rebase –i HEAD~8
  </code></pre>
  
  <p>I got a fatal:</p>
  
  <pre><code>fatal: Needed a single revision
  invalid upstream –i
  </code></pre>
  
  <p>Here is a part of commit logs:
  <a href="http://i.stack.imgur.com/5wF8A.png" rel="noreferrer">git log</a></p>
  
  <p>All of the commits history of the corresponding Github repository is here:
  <a href="https://github.com/yikouniao/YukiLog/commits/master" rel="noreferrer">https://github.com/yikouniao/YukiLog/commits/master</a></p>
  
  <h2>Edit1:</h2>
  
  <p>When I used git <code>rebase –i HEAD~2</code>, I got the same result.</p>
  
  <h2>Edit2:</h2>
  
  <p>I didn't know I had modified the file<code>.gitconfig</code>, <code>editor = notepad2</code> was add to the file. After I removed <code>editor = notepad2</code>, everything is OK. Then I rebased and squanshed 8 commits successfully.</p>