DS_Store冲突
2017-03-27 本文已影响0人
better栋
The files .DS_Store and .DS_Store had a tree conflict error from Git
# remove any existing files from the repo, skipping over ones not in repo
find . -name .DS_Store -print0 | xargs -0 git rm --ignore-unmatch
# specify a global exclusion list
git config --global core.excludesfile ~/.gitignore
# adding .DS_Store to that list
echo .DS_Store >> ~/.gitignore