Restore Deleted Files With Git

Posted by Tres Tue, 12 Aug 2008 13:28:00 GMT

This one is pretty easy, but for the fact that the built-in help doesn’t mention git ls-files.

To view deleted files use git ls-files –deleted

To restore deted files just use git checkout – <deleted_file>

Too easy.

Posted in  | Tags , , ,

Comments are disabled