I accidentally selected Git Add on an entire project tree (in IntelliJ Idea editor) rather than Git Commit which added 4000+ files I didn't want to Add, then newbie error of immediately doing Git Revert afterwards to try and reverse my mistake. Obviously it has now erased all my code changes since the last commit. Is there any way to undo both mistakes and get my work back?
I haven't done a commit or push on the latest work that I lost. Thanks