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

If you are using a “professional” IDE chances are good that you can restore files from a local History.
In Rubymine for example you can right click files and watch a history of changes independent from the git changes, saved me a few times now ^^

Leave a Comment