最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

iOS 配置.gitignore文件詳細(xì)介紹

 更新時間:2017年04月28日 16:20:58   投稿:lqh  
這篇文章主要介紹了iOS 配置.gitignore文件詳細(xì)介紹的相關(guān)資料,需要的朋友可以參考下

iOS 配置.gitignore文件詳細(xì)介紹

為什么要配置.gitigore

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

簡便配置

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

# Xcode
.DS_Store
*/build/*
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata
profile
*.moved-aside
DerivedData
.idea/
*.hmap
*.xccheckout
*.xcworkspace
!default.xcworkspace

#CocoaPods
Pods
!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 generated
build/
DerivedData/

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

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

Carthage/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.md

fastlane/report.xml
fastlane/screenshots

### Objective-C Patch ###
*.xcscmblueprint

### Swift ###
# 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
*.xcuserstate

## Obj-C/Swift specific
*.hmap
*.ipa

## Playgrounds
timeline.xctimeline
playground.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/Checkouts

Carthage/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.md

fastlane/report.xml
fastlane/Preview.html
fastlane/screenshots
fastlane/test_output

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

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

相關(guān)文章

最新評論

沙洋县| 阜康市| 和林格尔县| 霍州市| 长岛县| 巨鹿县| 安西县| 彭州市| 清水河县| 洛浦县| 宁南县| 星座| 泰州市| 天长市| 梓潼县| 永宁县| 尼玛县| 鹿泉市| 泗水县| 建瓯市| 道真| 柳江县| 洱源县| 临湘市| 莲花县| 金坛市| 五莲县| 定结县| 汉中市| 和静县| 郯城县| 师宗县| 安图县| 江华| 丽江市| 廉江市| 东莞市| 沙田区| 龙游县| 博兴县| 光山县|