Skip to content

Instantly share code, notes, and snippets.

@kapadia
Created November 16, 2015 21:56
Show Gist options
  • Save kapadia/3d3d5bc0e7f9128cb9b9 to your computer and use it in GitHub Desktop.
Save kapadia/3d3d5bc0e7f9128cb9b9 to your computer and use it in GitHub Desktop.
Delete files not checked in to git
git status | tail -n +5 | head -n -1 | ack-grep '#\s+(?P<file>.*)' --output $+{file} | parallel rm -rf {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment