3 ms·
How is the git status "polluted" by reporting untracked files that you don't intend to commit? If anything, I would say that such tricks make git status lie to
by alex_smart 4y ago
How is the git status "polluted" by reporting untracked files that you don't intend to commit?
If anything, I would say that such tricks make git status lie to you. What if you look at the git status and conclude that there are no unchanged files worth tracking and then with that false sense of safety decide to run 'git clean -fdx'? Sounds like an easy way to lose work.
Why is presence of untracked files in git status bothersome to anyone, especially when that is exactly what they are intentionally doing?
- properdine 4y agoif you do a `git clean -f`, untracked files get deleted. Ignoring files that should stick around helps ensure that command can be used nicely. I've never used `git clean -fdx`, not sure why you would use the `-x` flag at all. (but agreed if you use `-fdx` that doesn't work)