3 ms·
Yes, the time I used to hook up "rm `find ./ | grep DS_Store`" before anyone do a `git add`
by Brajeshwar 1y ago
Yes, the time I used to hook up "rm `find ./ | grep DS_Store`" before anyone do a `git add`
- arcfour 1y agoYou can create a global gitignore when forced to work on a Mac that excludes these.
- latexr 1y agoThat command doesn’t feel safe. It’ll delete anything with `DS_Store` in the name (even if it has other text). Does that even work properly? You’re relying on newlines to separate the files. I can imagine a different IFS easily screwing that up. In the end, you’re invoking three different utilities to do a janky operation which can be done properly with a single one: find . -name '.DS_Store' -delete