Removing .DS_Store files from Git

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

Never Have This Happen Again

touch ~/.gitignore_global
# Logs and databases #
######################
*.log
*.sql
*.sqlite

# OS generated files #
######################
.DS_Store
.DS_Store?
.Trashes
Thumbs.db

--

--

Programmer and Business owner from Canada / USA. I help businesses and entrepreneurs develop amazing digital products 🚀

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Chris Blackwell

Chris Blackwell

542 Followers

Programmer and Business owner from Canada / USA. I help businesses and entrepreneurs develop amazing digital products 🚀