Monthly Archives: March 2018

Git: Recover a deleted file

Hi, To get a deleted file from git (whatever the reason could be), there the command: file=”filepath” git checkout $(git rev-list -n 1 HEAD — “$file”)^ — “$file” Source: https://stackoverflow.com/questions/953481/find-and-restore-a-deleted-file-in-a-git-repository

Posted in General | Leave a comment