Skip to content

Instantly share code, notes, and snippets.

@julienbourdeau
Created June 9, 2013 08:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save julienbourdeau/5742789 to your computer and use it in GitHub Desktop.
Save julienbourdeau/5742789 to your computer and use it in GitHub Desktop.
The command essentially says, "Use grep to find all the lines ouput by 'git status' that have the word 'deleted' in it, then grab the 3rd column on the line and run 'git rm' on it."
git rm `git status | grep deleted | awk '{print $3}'`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment