Restoring Locally Deleted Files With Git
If I’ve removed files from my working copy, but change my mind and want them back again this little command comes in handy:
git ls-files -d | xargs git checkout —
If I’ve removed files from my working copy, but change my mind and want them back again this little command comes in handy:
git ls-files -d | xargs git checkout —