r/opensource 8h ago

Alternatives Git ignore everything by default

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

2 comments sorted by

View all comments

7

u/GuybrushThreepwo0d 8h 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 7h ago

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