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