DS_Store冲突

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

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • The file .DS_Store had a tree conflict. 使用Xcode git提交更改的时...
    龙飞风无阅读 1,005评论 0 0
  • Spring Cloud为开发人员提供了快速构建分布式系统中一些常见模式的工具(例如配置管理,服务发现,断路器,智...
    卡卡罗2017阅读 135,026评论 19 139
  • 看着你有些累 想要一个人静一会 你的眼含着泪 我的心也眼着碎 你为哪个人憔悴 为他扛下所有罪 我为你执迷不悔 整夜...
    遗世Caroline阅读 447评论 0 0
  • 故事发生在天宝三年的长安城。有了太宗高宗武则天时期的开疆扩土,加上玄宗开元三十年以来的财富积累,此时的大唐帝国堪称...
    船长辛巴达阅读 7,749评论 0 2
  • 故事概述 有一天,在农场里,鸭子冒出一个疯狂的主意,“我打赌我会骑车”他一摇一摆地走到男孩停着的自行车旁,爬上去,...
    邹银利阅读 1,397评论 1 2