Git remove all .DS_Store files recursively

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:

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.

Leave a Reply

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