title: How to undo git rm --cached <filename>?
body: <p>After staging a file(tracked file) I realized it needed some changes, so to unstage it I used
  <code>git rm --cached &lt;filename&gt;</code>. Consequently, I lost all the changes. Is there a way to undo it?</p>