You are working on a new functionality. You open up your IDE and start hacking away. You create several new files, invest your time and effort and then you accidentally delete the wrong file. No problem, that’s what we have Git for, right? But you forgot to add that now deleted file to version control. Aaarrrrggh. There is no way to retrieve that lost file. Bad, bad stupid little programmer.
There is one little hack to save you (if you are in Windows):
Locate the folder of deleted file and press Ctrl-Z. That will undo your deletion.
It has just saved my day 🙂