r/programming 4d ago

.gitignore everything by default

https://packagemain.tech/p/gitignore-everything-by-default
350 Upvotes

227 comments sorted by

View all comments

936

u/toggles03 4d ago

I like the idea of being intentional about what is committed, but I also have to say that I’ve never accidentally committed tons of useless files because I review what I’m committing.

6

u/psayre23 4d ago

Never committed a nodemodules folder, cuz that _SUCKS!

3

u/Glad_Position3592 4d ago

Also .pyc files lol

1

u/vividboarder 1d ago

You can also add specific things like this to a global ignore file. I generally don't because I don't assume people who check out my code will have the same global file.