I doubt git keeps this in memory, but perhaps I missed an option.
I modified a file on my local repository, and then I did git rm file
. I would like to restore file
in its previous state, ie. my local modified copy. git checkout file
will restore it to the latest versionned state, losing my changes...
If there still a way to recover my changes?