Removing .DS_Store Files (Recursively)

While .DS_Store files may be useful in the OS X environment (like a Thumbs.db file in a Windows environment) they can get in the way when you're working in Subversion or Git repositories. They have no place there! Fortunately, there's a quick way to get rid of them!

find . -name '*.DS_Store' -type f -delete

As usual, I recommend making a backup and make sure you're running the command in the root repository folder. You can of course adjust the path as necessary, but I run my commands while in the root directory just to be on the safer side of things.


comments powered by Disqus

Morgan W.

Head over heels for gadgets!

Search



Instagram

Twitter