美文网首页
git不上传Cocoapods的pod文件

git不上传Cocoapods的pod文件

作者: 心存暖人_iOS | 来源:发表于2019-05-20 18:26 被阅读0次

1.打开终端,切换到项目所在的工程目录下,新建.gitignore文件

touch .gitignore

2.打开.gitignore文件

open .gitignore

3.把下git需要忽略的文件代码拷贝到.gitignore中去

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

最后面的
CocoaPods
Pods/是我们指定忽略pod文件。

原文链接

相关文章

网友评论

      本文标题:git不上传Cocoapods的pod文件

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