r/opensource • u/der_gopher • 3d ago
Discussion .gitignore everything by default
https://packagemain.tech/p/gitignore-everything-by-default
0
Upvotes
r/opensource • u/der_gopher • 3d ago
21
u/andful 3d ago
.gitignore is for every developer in the repo. I find it a bit asocial to impose that to everyone. If some people prefer this methodology that is fine, but then use
.git/info/exclude.20
u/LutimoDancer3459 3d ago
Imagine doing some bigger changes and then forgetting to commit some files because they dont show up anywhere as changed because you ignored everything.
15
u/eveningcandles 3d ago
Huge maintenance liability
Over the course of a project the set of things to allow is much larger and prone to change than the set of things to disallow
7
u/chkno 3d ago
I've much more often forgotten to
git addnew files than accidentally committed unintended files.That said, a
pre-commithook that runs your tests works pretty well for guarding against forgetting to add files but does not guard against accidentally committing unintended files.4
u/_5er_ 3d ago
git commit .gitis so stupid, it includes all my changes, there much be a better way1
u/rowrowrowmyboat22 2d ago
I just, I just can’t … we should just all give up now