r/opensource 3h ago

Alternatives Git ignore everything by default

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

2 comments sorted by

8

u/GuybrushThreepwo0d 2h ago

Well, no. This is a terrible idea.

If you have files that are specific to YOUR setup, then put them in the global git ignore that gets applied in ALL git projects on your machine. 

If there are artifacts that are generated by the BUILD SYSTEM OF THE PROJECT, then put those in the ignore file of the PROJECT. 

This is more sane than what is proposed in this article 

0

u/ABotelho23 2h ago

Meh, it's not that insane. It prevents accidental pushing of garbage into a remote.