赞
踩
mac电脑使用git,会生成DS_Store文件,忽略步骤如下:
1、项目中.gitignore文件新增配置
- .DS_Store
- */.DS_Store
2、删除项目中的.DS_Store文件(也可能不需要删除)
find . -name .DS_Store -print0 | xargs -0 git rm -f --ignore-unmatch
3、git执行命令
- git add .
- git commit -m '.DS_Store banished!'
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。