/ Published in: Bash
Restore a deleted file within the git repo
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
git checkout $(git rev-list -n 1 HEAD -- "$file")^ -- "$file"
URL: http://stackoverflow.com/questions/953481/restore-a-deleted-file-in-a-git-repo