Is there a handy way to ignore all untracked files and folders in a git repository?
(I know about the .gitignore.)
So git status would
If you want to permanently ignore these files, a simple way to add them to .gitignore is:
git ls-files --others --exclude-standard >> .gitignoreThis will enumerate all files inside untracked directories, which may or may not be what you want.
If you have a lot of untracked files, and don't want to "gitignore" all of them, note that, since git 1.8.3 (April, 22d 2013), git status will mention the --untracked-files=no even if you didn't add that option in the first place!
"
git status" suggests users to look into using--untracked=nooption when it takes too long.