美文网首页程序员
Mac xcode 生成.DS_Store GIT无法忽略

Mac xcode 生成.DS_Store GIT无法忽略

作者: iOS大熊猫 | 来源:发表于2022-04-19 10:24 被阅读0次

明明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/

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

相关文章

网友评论

    本文标题:Mac xcode 生成.DS_Store GIT无法忽略

    本文链接:https://www.haomeiwen.com/subject/xxlsertx.html