Restore A Deleted File With Git
Have you ever deleted a file and a few commits later realized you actually needed it in your project because of a hidden depedencies you did not see? Here is a simple bash command that will restore any deleted file by filename.
The command uses git to find the revision it was deleted and then restores it. You will need to commit the file once it is restored.