Skip to content

Instantly share code, notes, and snippets.

@lejeunerenard
Created June 23, 2014 15:46
Show Gist options
  • Save lejeunerenard/1dcb21e63110367b923e to your computer and use it in GitHub Desktop.
Save lejeunerenard/1dcb21e63110367b923e to your computer and use it in GitHub Desktop.
Restoring deleted files that were tracked but havent been committed
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