Skip to content

Instantly share code, notes, and snippets.

@lejeunerenard
Last active January 3, 2016 14:49
Show Gist options
  • Save lejeunerenard/8478400 to your computer and use it in GitHub Desktop.
Save lejeunerenard/8478400 to your computer and use it in GitHub Desktop.
Stage removal of all tracked files already deleted
git status | grep deleted | awk '{ print substr($0, index($0,$3)) }' | xargs -d '\n' git rm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment