Last Updated: September 09, 2019
·
201
· mfrey

Restore deleted (versioned) files in your git repository

Sometimes I accidentally delete files in a cloned git repository. The following command restores the files in a convient way:

git ls-files -d | xargs git checkout --