国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 系統 > iOS > 正文

iOS 配置.gitignore文件詳細介紹

2020-07-26 02:49:57
字體:
來源:轉載
供稿:網友

iOS 配置.gitignore文件詳細介紹

為什么要配置.gitigore

在我們使用git的過程當中,不是任何文件都需要commit到本地或者遠程倉庫的,比如一些三方庫文件。
那么作為一個git新手,很多人不知道如何配置.gitignore文件,本文只是提供一個便捷的例子。你可以直接使用本文提供的代碼編輯到你的.gitigore文件中。

簡便配置

直接復制下面的內容到你的.gitignore文件即可。注意,這個配置是給iOS開發者使用的。

# Xcode.DS_Store*/build/**.pbxuser!default.pbxuser*.mode1v3!default.mode1v3*.mode2v3!default.mode2v3*.perspectivev3!default.perspectivev3xcuserdataprofile*.moved-asideDerivedData.idea/*.hmap*.xccheckout*.xcworkspace!default.xcworkspace#CocoaPodsPods!Podfile!Podfile.lock

到gitignore.io去選擇自定義配置

gitignore.io 輸入你需要配置的語言,會幫助你自動生成一份配置。比如,輸入Objective-C和Swift會幫助你生成下面的配置。

# Created by https://www.gitignore.io/api/objective-c,swift### Objective-C #### Xcode## gitignore contributors: remember to update     Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore## Build generatedbuild/DerivedData/## Various settings*.pbxuser!default.pbxuser*.mode1v3!default.mode1v3*.mode2v3!default.mode2v3*.perspectivev3!default.perspectivev3xcuserdata/## Other*.moved-aside*.xcuserstate## Obj-C/Swift specific*.hmap*.ipa# CocoaPods## We recommend against adding the Pods directory to your     .gitignore. However# you should judge for yourself, the pros and cons are   mentioned at:# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control## Pods/# Carthage## Add this line if you want to avoid checking in source code from Carthage dependencies.# Carthage/CheckoutsCarthage/Build# fastlane## It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the # screenshots whenever they are needed.# For more information about the recommended setup visit:#   https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Gitignore.mdfastlane/report.xmlfastlane/screenshots### Objective-C Patch ###*.xcscmblueprint### Swift #### Xcode## gitignore contributors: remember to update   Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore## Build generatedbuild/DerivedData/## Various settings*.pbxuser!default.pbxuser*.mode1v3!default.mode1v3*.mode2v3!default.mode2v3*.perspectivev3!default.perspectivev3xcuserdata/## Other*.moved-aside*.xcuserstate## Obj-C/Swift specific*.hmap*.ipa## Playgroundstimeline.xctimelineplayground.xcworkspace# Swift Package Manager## Add this line if you want to avoid checking in source code from Swift Package Manager dependencies.# Packages/.build/# CocoaPods## We recommend against adding the Pods directory to your .gitignore. However# you should judge for yourself, the pros and cons are mentioned at:# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control## Pods/# Carthage## Add this line if you want to avoid checking in source code from Carthage dependencies.# Carthage/CheckoutsCarthage/Build# fastlane## It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the# screenshots whenever they are needed.# For more information about the recommended setup visit:#   https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Gitignore.mdfastlane/report.xmlfastlane/Preview.htmlfastlane/screenshotsfastlane/test_output

這個配置自動生成了很多注釋和一些不太必要的配置,所以直接使用上面提供的簡便配置就好。

感謝閱讀,希望能幫助到大家,謝謝大家對本站的支持!

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 大名县| 吉林省| 房山区| 陇川县| 措美县| 黄石市| 乐山市| 锦屏县| 太原市| 顺昌县| 淄博市| 龙海市| 绥化市| 车险| 沙河市| 淮阳县| 磴口县| 福海县| 南昌市| 杂多县| 正蓝旗| 肇源县| 平邑县| 华亭县| 社会| 壶关县| 赤峰市| 任丘市| 清河县| 黄陵县| 日喀则市| 西乌珠穆沁旗| 宽甸| 阳东县| 青浦区| 进贤县| 太和县| 漳平市| 深州市| 石屏县| 阳东县|