zerowriter / zerowriter1

126 stars 20 forks source link

Repo contains OS X DS_Store files #7

Closed tallzilla closed 4 months ago

tallzilla commented 5 months ago

I love this project, I've been playing around with this for several hours and look forward to the v2 waveshare drivers.

One small nit - this repo contains .DSStore and ..DS_Store files in each directory, presumably written by the OS X filesystem you're working on (this happens to me all the time). If you add these to a global .gitignore file they won't be passed on for everyone to see.

This will add a global ignore to your local projects git config --global core.excludesfile "~/.gitignore" && echo *.DS_Store >> ~/.gitignore

Thanks!

tallzilla commented 5 months ago

Actually the above command just future-proofs your code. You'll need to run this from your project's root directory to remove the existing DS_Store files in the project:

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

zerowriter commented 4 months ago

Thanks! I will add this. I frequently work between OSX, linux, and PC so -- kind of all over the place.