Remove .DS_Store from git repository

Remove existing .DS_Store files from the repository:
find . -name .DS_Store -print0 | xargs -0 git rm -f --ignore-unmatch
Add the .DS_Store line to the file .gitignore, this file can be found at the top level of your repository, if not created it with the following command:
echo .DS_Store >> .gitignore
Then add the changes and commit them:
git add .gitignore
git commit -m '.DS_Store banished!' 
Then push:
git push 


Posts les plus consultés de ce blog

Knative vs OpenFaaS: What are the differences?

How to increase Pods limit per worker node in Kubernetes

How to Create a personal cloud at home using Openstack