Git remove all .DS_Store files recursively

No comments on Git remove all .DS_Store files recursively

Written by

in

Sometimes Git doesn’t work properly with .DS_Store files in each of the folders.
This is how to git remove all .DS_Store files recursively:

find . -name .DS_Store -exec git rm {} +

Here dot after “find” means that it will search in all folders inside current folder.
“-exec” runs “git rm” for each found file.
Plus means the end of the “-exec” statement.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *