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:
1 |
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.