Git合并 .DS_Store问题
现在是我们想不让.DS_Store提交 只要添加上就行了
git 具体操作如下 :
1、find . -name .DS_Store -print0 | xargs -0 git rm -f --ignore-unmatch
删除项目中的 .DS_Store 文件
2、 echo .DS_Store >> ~/.gitignore
将 .DS_Store (*/.DS_Store)加入到 .gitignore
Git合并 .DS_Store问题
现在是我们想不让.DS_Store提交 只要添加上就行了
git 具体操作如下 :
1、find . -name .DS_Store -print0 | xargs -0 git rm -f --ignore-unmatch
删除项目中的 .DS_Store 文件
2、 echo .DS_Store >> ~/.gitignore
将 .DS_Store (*/.DS_Store)加入到 .gitignore