Skip to content

Instantly share code, notes, and snippets.

@julienbourdeau
Created June 9, 2013 08:21
Show Gist options
  • Select an option

  • Save julienbourdeau/5742789 to your computer and use it in GitHub Desktop.

Select an option

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