Kriuchko
4/17/2019 - 1:12 PM

.DS_Store remove .DS_Store

\!h .gitignore file

# OS generated files #
######################
.DS_Store?
ehthumbs.db
Icon?
Thumbs.db
*.DS_Store

---- old ----

*.DS_Store
.DS_Store
.DS_Store?


\!h Remove the .DS_Store files from your folders

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

You can use this for other files as well. For example, you could use find . -name '*.js' -type f -delete to delete all JavaScript files within a containing folder. 

\!h Remove .DS_Store accidentally added to your Git repository

find . -name .DS_Store -print0 | xargs -0 git rm -f --ignore-unmatch