Skip to content

Instantly share code, notes, and snippets.

@bonyiii
Created April 3, 2012 08:42
Show Gist options
  • Save bonyiii/2290489 to your computer and use it in GitHub Desktop.
Save bonyiii/2290489 to your computer and use it in GitHub Desktop.
list git untracked files and delete them
# http://stackoverflow.com/questions/3801321/git-list-only-untracked-files-also-custom-commands
git ls-files --other --exclude-standard app/views/ | xargs rm
git ls-files -z -o --exclude-standard | xargs -0 git add
git clean -df
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment