Undo delete before commit

git reset HEAD <path to file or directory>
git checkout -- <path to file or directory> 

Checkout specific commit

git checkout <sha1>
Advertisements