Posted By

Glycerine on 12/01/11


Tagged

file git restore deleted


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

ef


Restore deleted file in Git


 / Published in: Bash
 

URL: http://stackoverflow.com/questions/953481/restore-a-deleted-file-in-a-git-repo

Restore a deleted file within the git repo

  1. git checkout $(git rev-list -n 1 HEAD -- "$file")^ -- "$file"

Report this snippet  

You need to login to post a comment.