this post was submitted on 28 Jan 2025
1687 points (99.6% liked)

Programmer Humor

20215 readers
1752 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] boonhet@lemm.ee 29 points 2 days ago (21 children)

Just gitignore that. Same for dot idea and whatever vscode adds, if anything

[–] andioop@programming.dev 11 points 2 days ago* (last edited 2 days ago) (1 children)

git add . > git commit -m "initial" > git push

Later when I git status or just look at the repo online… "oh crap I let .DS_Store in didn't I…" and then I remember to set up a .gitignore and make a new commit to take out the .DS_Store and put in the .gitignore.

[–] PartiallyApplied@lemmy.world 7 points 2 days ago

You probably already know this, but for those who don’t, git can globally ignore patterns. It’s the first thing I set up after logging in. Honestly wish git just shipped this way out of the box (maybe match .DS_Store by name and some magic bytes?) with a way to disable it. Just for the sake of easier onboarding

load more comments (19 replies)