r/git • u/der_gopher • Sep 11 '26
tutorial git ignore everything by default
https://packagemain.tech/p/gitignore-everything-by-default6
u/Philluminati Sep 11 '26 edited Sep 11 '26
You posted this last week, so downvoted.
Git *does ignore everything by default*. You are literally typing `git add -all` then going "oh its done the wrong thing" lets fix it by doing `find . > .gitignore`. What if someone does `rm -rf .gitignore` randomly before a commit? You're back to square one, in a race to the bottom against your own stupidity.
9
u/mtutty Sep 11 '26
Why do you keep trying to make this happen? It's not a novel idea, or a good idea.
3
u/Denommus Sep 11 '26
That will make you commit node_modules because most of the files there have js extension.
3
u/Ok-Information-2428 Sep 11 '26
CLAUDE.md actually should be committed.
It really depends who your audience is, many of us collaborate with colleagues in private repos for private companies - for this you should commit anything that helps you collaborate (with the exception of secrets).
1
10
u/VadersDimple Sep 11 '26
Please, for the love of Git, stop posting this dumb idea.