Skip to content

Instantly share code, notes, and snippets.

@micha149
Last active December 22, 2015 19:59
Show Gist options
  • Save micha149/6523387 to your computer and use it in GitHub Desktop.
Save micha149/6523387 to your computer and use it in GitHub Desktop.
Git: Remove untracked files
git status --porcelain -u | grep -E '^\?\?' | sed -e 's/^\?? //' | xargs rm -rf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment