Last active
July 2, 2024 13:23
-
-
Save vybstat/1680bef4715bfbcb0268 to your computer and use it in GitHub Desktop.
How to remove .DS_Store file from GitHub that Mac OS X creates
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# remove .DS_Store file from GitHub that MAC OS X creates | |
# find and remove .DS_Store | |
find . -name .DS_Store -print0 | xargs -0 git rm -f --ignore-unmatch | |
# create .gitignore file, if needed | |
touch .gitignore | |
echo .DS_Store > .gitignore | |
# push changes to GitHub | |
git add .gitignore | |
git commit -m '.DS_Store removed' | |
git push origin master |
It's the year 2024 thank you for helping out with this!!!
thank you so much
Thank you very much!!! This method really works!
thank you so much
Thanks! :D
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you a lot, helped me a lot!