r/ProgrammerHumor • • Oct 10 '26

Meme noWayLol

Post image
11k Upvotes

118 comments sorted by

View all comments

Show parent comment

39

u/No-Article-Particle Oct 10 '26

But one gitignore can't handle the 30-odd files that everyone wants to ignore... I never understood the "PR rejected, just ignore .swp files locally" tbh.

21

u/Loading_M_ Oct 10 '26

Yes and no. Git actually has a system wide gitignore you can setup to globally ignore files across your whole system. I personally take notes in a notes.md file, so I have a global ignore for it. I don't have you set it up for each repo, and it doesn't pollute the repo's gitignore. If your editor of choice creates temp files or stores project specific configuration in the project directory (e.g. .vscode, etc), they should also be in your global gitignore.

2

u/Reashu Oct 12 '26

Ehh, if it's a common editor just bite the bullet and put it in the gitignore. Same with DS_Store and thumbs.db, etc..

14

u/NewLlama Oct 10 '26

Because it invites unbounded shared configuration for local workflows.

11

u/OhioGoblin43 Oct 10 '26 edited Oct 10 '26

Everyone hates me for being the repo gestapo but the only issues people have with setting up is when they've skipped steps in the doc. No one can be bothered to address that either though so it'll be me automating that too soon.

7

u/OneBigRed Oct 10 '26

Repo Gestapo sounds like something that’s playing at the UG-club at 5am.

2

u/OhioGoblin43 Oct 10 '26

Is technopunk still a thing? The last bands from that genre I've kept up with were And One, and The Presets to a lesser extent.

As long as I can work within the IDE, build, and run a local session without crap floating around my commit window I'm chill lol.

1

u/ohkendruid Oct 11 '26

It can handle a union of those files, however.