当前位置:   article > 正文

MAC忽略git提交DS_Store文件_git. 用上传 ds.store

git. 用上传 ds.store

mac电脑使用git,会生成DS_Store文件,忽略步骤如下:

1、项目中.gitignore文件新增配置

  1. .DS_Store
  2. */.DS_Store

2、删除项目中的.DS_Store文件(也可能不需要删除)

find . -name .DS_Store -print0 | xargs -0 git rm -f --ignore-unmatch

3、git执行命令

  1. git add .
  2. git commit -m '.DS_Store banished!'

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/寸_铁/article/detail/858504
推荐阅读
相关标签
  

闽ICP备14008679号