Created
April 3, 2012 08:42
-
-
Save bonyiii/2290489 to your computer and use it in GitHub Desktop.
list git untracked files and delete them
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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