美文网首页
iOS git忽略pod文件提交

iOS git忽略pod文件提交

作者: 原味丿丿咖啡Vitas | 来源:发表于2020-03-26 17:17 被阅读0次

1.打开终端,cd进入到项目文件夹

2.终端输入touch .gitignore,创建忽略文件

3.终端输入open .gitignore,打开忽略文件

4.在打开的文件中输入:

# Created by https://www.gitignore.io/api/xcode

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

## Build generated
build/
DerivedData/

## Various settings
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata/

## Other
*.moved-aside
*.xccheckout
*.xcscmblueprint

### Xcode Patch ###
*.xcodeproj/*
!*.xcodeproj/project.pbxproj
!*.xcodeproj/xcshareddat
!*/xcuserdata/admin.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlista/
!*.xcworkspace/contents.xcworkspacedata
/*.gcno


# End of https://www.gitignore.io/api/xcode



# Created by https://www.gitignore.io/api/cocoapods

### CocoaPods ###
## CocoaPods GitIgnore Template

# CocoaPods - Only use to conserve bandwidth / Save time on Pushing
#           - Also handy if you have a large number of dependant pods
#           - AS PER https://guides.cocoapods.org/using/using-cocoapods.html NEVER IGNORE THE LOCK FILE
Pods/
Podfile.lock
.DS_Store

# End of https://www.gitignore.io/api/cocoapods

保存后关闭文件即可

相关文章

网友评论

      本文标题:iOS git忽略pod文件提交

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