Git – How to undo a checkout of unstaged files which discards local changes

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?

16 Answers
16

Leave a Comment