I have a large Git repository that has many random files and directories in it that should be ignored. When I run git status
, I get a lot of noise.
Those files and directories don't follow a specific pattern. I could manually add them one by one to .gitignore
, but this is tedious.
Is there a rapid way to add many or all of the "untracked files" returned by git status
to .gitignore
? This seems like such an obvious task that I imagine a solution must exist.