Wednesday, January 14, 2009

Git: restoring accidentaly deleted files

To view a list of deleted files:
git ls-files --deleted

To restore a deleted file (assuming the D is not yet commited)
git checkout where/the/file/was.ext

No comments: