how to redo discarded local changes in git?
<p>Let have a file <code>a</code> tracked by git and modified locally.
Moreover, that file was in the stash too.</p>
<p>Then:</p>
<p>If you did it <code>git stash pop</code>, see <a href="http://stackoverflow.com/questions/89332/how-to-recover-a-dropped-stash-in-git">this link</a></p>
<p>If accidentally you did only this <code>git checkout a</code> you've lost.</p>
<p>That discards all changes in a file.</p>
<p>How to undo this operation?</p>
<p>I don't see this operation in <code>reflog</code>.</p>
<p>Stash after pop doesn't exist (not listed), but does any of that history is available somewhere in <code>.git</code> directory?</p>