git恢复误删除的文件

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

原文地址:https://www.cnblogs.com/chutianyao/p/3801231.html