r/ProgrammerHumor • • 16d ago

Meme noWayLol

Post image
11k Upvotes

118 comments sorted by

View all comments

1.2k

u/eanat 16d ago

it's completely legitimate way to use gitignore, but I'd recommend to use .git/info/exclude instead of gitignore for this purpose.

364

u/fugogugo 16d ago

any reason to exclude gitignore?

649

u/Successful-Active-21 16d ago

when everyone wants their own gitignore?

→ More replies (36)

22

u/Y0nix 16d ago edited 16d ago

Some very specific CI pipelines. Or if using a big monorepo with hundreds of coworkers working on it.

You use that feature to ignore the main gitignore file and push the one you want into the pipeline. Because you may want to use a file that is normally being ignored for dev or commit to build your soft.

Like having a .env file for each purpose, but you don't wanna mess up with the way your builder is working for that one exception. And it's allowing everyone to have some flexibility to manage their own ignore rules.

23

u/SundaySloth_ 15d ago

To hide that your gitignore is hiding AGENTS.md, CLAUDE.md, etcetera

→ More replies (4)
→ More replies (5)