title: cannot pull with rebase: You have unstaged changes
body: <p>Today at the office I got a weird error while using <code>git pull</code>, but here is what happened.</p>
  
  <ol>
  <li>I cloned the repo: <code>git clone &lt;repo-url&gt;</code></li>
  <li>Applied my modifications</li>
  <li>Staged modified/created files in step 2: <code>git add &lt;file(s)&gt;</code></li>
  <li><code>git commit -m "my message"</code></li>
  <li><code>git pull --rebase</code></li>
  </ol>
  
  <p>and I got the following error:</p>
  
  <pre><code>error: cannot pull with rebase: You have unstaged changes.
  error: please commit or stash them.
  </code></pre>
  
  <p>When looking at the commit with <code>git show &lt;SHA&gt;</code> I can see my staged files. Just FYI between step 1 and 5 some code was pushed.</p>
  
  <p>Thanks!</p>