I accidentially discard my changes on files in my local working tree via git checkout. The files aren't staged at this time. Is it posible to "undo" this checkout?
+1
A:
I believe if a file is modified but not yet added (staged), it is purely "private".
Meaning it cannot be restored by GIT if overwritten with the index or the HEAD version (unless you have a copy of your current work somewhere)."
A "private" content is one only visible in your current directory, but not registered in any way in Git.
VonC
2010-04-22 08:40:51
+2
A:
Unfortunately your changes are lost. Your private modifications are simply overwritten.
Unless you did git stash
prior making checkout...
Take it from the brighter side: you can now implement things even better ;)
Marcin Gil
2010-04-22 08:52:24
What should i say. Sometimes you eat the bear and sometimes the bear, well, he eats you. :-) Thank you for the answer.
Herr W.
2010-04-22 12:32:46