Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

For git users:

    echo ".DS_Store" >> ~/.gitignore
    git config --global core.excludesfile ~/.gitignore
If you spend many man hours dealing w/ .DS_Store files in source code repos you're doing something wrong.


Nobody individually spends too much time on dealing with them. It the global accumulation of man hours having to deal with them that is a travesty.


Find . -name ".DS_Store" | xargs rm

Forgive if it's not exact, I'm on a mobile device. But that should save you effort.


Right, I don't think anybody is saying it's an overburdening difficulty.

But it's still something, when I shouldn't have to do anything.


It's an extreme case of what is commonly called a "first world problem".


90% of the "problems" discussed on HN can be dismissed as "first world problems," but thanks for pointing it out.


A lot, maybe, but not 90%. I think most are valid engineering problems and questions


It should work. The other way to do this is:

      find . -name '.DS_Store' -delete


I'm in lust with xargs


I noticed the other day that .DS_Store was already ignored globally, but I don't remember ever telling Git to do that. Is this perhaps just something that OS X Git installer is doing by default now?


No it doesn't. I think the homebrew installer does it, but I'm not sure.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: