Created
June 23, 2014 15:46
-
-
Save lejeunerenard/1dcb21e63110367b923e to your computer and use it in GitHub Desktop.
Restoring deleted files that were tracked but havent been committed
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git status | grep deleted | awk '{ print substr($0, index($0,$3)) }' | xargs -d '\n' git checkout -- |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment