iOS Git添加ignore 忽略提交pods内容
2020-08-06 本文已影响0人
Singularity_Lee
-
cd
进项目所在文件夹,并生成.gitignore
文件
touch .gitignore
-
open .gitignore
文件添加忽略过滤内容并保存push上传即可
# 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/
Pods
.DS_Store
Podfile.lock
/.DS_Store
Podfile.lock
/Podfile.lock
若不需要忽略提交pods内容将最后
#CocoaPods
中包含项去除即可