Skip to content

Instantly share code, notes, and snippets.

@neror
Created March 9, 2011 06:46
Show Gist options
  • Select an option

  • Save neror/861792 to your computer and use it in GitHub Desktop.

Select an option

Save neror/861792 to your computer and use it in GitHub Desktop.
git ls-files -o|python -c "import sys;[sys.stdout.write(\"'\"+s.strip()+\"'\\n\") for s in sys.stdin.readlines()]"|xargs rm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment