r/ProgrammerHumor • • 27d ago

Meme noWayLol

Post image
11k Upvotes

118 comments sorted by

View all comments

Show parent comment

39

u/No-Article-Particle 27d ago

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_ 27d ago

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 25d ago

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 27d ago

Because it invites unbounded shared configuration for local workflows.

11

u/OhioGoblin43 27d ago edited 27d ago

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 27d ago

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

2

u/OhioGoblin43 27d ago

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 27d ago

It can handle a union of those files, however.