git ls-files -d | xargs -i git checkout {} 转载于:https://www.cnblogs.com/ahuo/archive/2012/06/23/2559638.html