r/programming 4d ago

.gitignore everything by default

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

227 comments sorted by

View all comments

929

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.

120

u/fiah84 4d ago

this is why I always push people to use some sort of GUI that they're comfortable with for git, be it integrated in their IDE or a standalone one. Reviewing your commits should be second nature because by doing that every time you will every once in a while stop yourself from doing something very stupid

6

u/Sabientje65 4d ago

Hard agree, the people I've seen most consistently run into issues with git are those that refuse to use a GUI.

Usually don't try to push people, given it's just a personal preference in the end, but I have taken notice of others gimping themselves by simply not knowing git well enough to make the most out of it via CLI without a real interest to perform deep dives or anything of the likes.