- Stop tracking every .DS_Store
find . -name .DS_Store -print0 | xargs -0 git rm --cached --ignore-unmatch - Ignore them from now on
echo .DS_Store >> .gitignore - Commit
git add .gitignore && git commit -m "Remove .DS_Store files"
- Stop tracking every .DS_Store
find . -name .DS_Store -print0 | xargs -0 git rm --cached --ignore-unmatch - Ignore them from now on
echo .DS_Store >> .gitignore - Commit
git add .gitignore && git commit -m "Remove .DS_Store files"
- Stop tracking every .DS_Store
git ls-files '*.DS_Store' | ForEach-Object { git rm --cached --ignore-unmatch $_ } - Ignore them from now on
Add-Content .gitignore .DS_Store - Commit
git add .gitignore; git commit -m "Remove .DS_Store files"