(due misclick , you went wild while you drunk and decide to delete file or as me you delete file without wear a glasses first.).
What to do ? Well, In normal cases,below steps are enough ..
1) Go to right project directory
- git reset HEAD *DeletedFile.name
- git checkout *DeletedFile.name
- git status to ensure that everything went smoothly
And advice to myself:
Do not delete files without wearing glasses first.