Mac xcode 生成.DS_Store GIT无法忽略

明明GIT忽略了.DS_Store,还是会记录,是因为xcode的GIT重复记录了

xcode -> 设置->Source Control ->Git


然后运行代码GIT就不会继续记录.DS_Store文件了

附:iOS GIT 的.gitignore 忽略文件的配置

在.git同目录下创建.gitignore:

         touch .gitignore   //在目录下生成.gitignore  文件。

        open .gitignore   //打开.gitignore (txt)文件。

-------------------------------------------------------------------------------------------------

# Xcode

#

# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore &Swift.gitignore

# Mac OS X Finder and whatnot

.DS_Store

## Build generated

build/DerivedData/

## Various settings

*.pbxuser!default.pbxuser

*.mode1v3!default.mode1v3

*.mode2v3!default.mode2v3

*.perspectivev3!default.perspectivev3

xcuserdata/

## Other

*.moved-aside

*.xcuserstate

*.xccheckout

## Obj-C/Swift specific

*.hmap

*.ipa

*.dSYM.zip

*.dSYM

#CocoaPods

Pods/

-------------------------------------------------------------------------------------------------

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

推荐阅读更多精彩内容