4 ms·
For git users: echo ".DS_Store" >> ~/.gitignore git config --global core.excludesfile ~/.gitignore If you spend many man hours dealing w/ .DS_Store fi
by sjs 15y ago
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.
- snielsen 15y agoNobody 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.
- masmullin 15y agoFind . -name ".DS_Store" | xargs rm Forgive if it's not exact, I'm on a mobile device. But that should save you effort.
- jlarocco 15y agoRight, 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.
- dextorious 15y agoIt's an extreme case of what is commonly called a "first world problem".
- jlarocco 15y ago90% of the "problems" discussed on HN can be dismissed as "first world problems," but thanks for pointing it out.
- dextorious 15y agoA lot, maybe, but not 90%. I think most are valid engineering problems and questions
- denysonique 15y agoIt should work. The other way to do this is: find . -name '.DS_Store' -delete
- masmullin 15y agoI'm in lust with xargs
- kellishaver 15y agoI 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?
- g3orge 15y agoNo it doesn't. I think the homebrew installer does it, but I'm not sure.