欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

iOS 配置.gitignore文件詳細介紹

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

iOS 配置.gitignore文件詳細介紹

為什么要配置.gitigore

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

簡便配置

直接復制下面的內(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)文章

  • iOS11和iPhoneX適配的一些坑

    iOS11和iPhoneX適配的一些坑

    前陣子項目開發(fā)忙成狗,就一直沒做iOS11的適配,直到XcodeGM版發(fā)布后,我胸有成竹的在iPhoneX上跑起項目,整個人都涼透了...下面總結(jié)一下我遇到的坑,感興趣的朋友一起看看吧
    2017-09-09
  • Swift 2.1 為 UIView 添加點擊事件和點擊效果

    Swift 2.1 為 UIView 添加點擊事件和點擊效果

    本文主要介紹 Swift UIView,這里給大家提供代碼示例作為參考為UIView 添加點擊事件和點擊效果,希望能幫助IOS開發(fā)的同學
    2016-07-07
  • iOS實現(xiàn)消息推送及原理分析

    iOS實現(xiàn)消息推送及原理分析

    這篇文章主要為大家詳細介紹了iOS實現(xiàn)消息推送,及針對消息推送原理進行分析,感興趣的小伙伴們可以參考一下
    2016-08-08
  • iOS之加載Gif圖片的方法

    iOS之加載Gif圖片的方法

    本篇文章主要介紹了iOS之加載Gif圖片,小編覺得挺不錯的,現(xiàn)在分享給大家,也給大家做個參考。一起跟隨小編過來看看吧
    2017-11-11
  • iOS 中weak的實現(xiàn)代碼示例

    iOS 中weak的實現(xiàn)代碼示例

    本篇文章主要介紹了iOS 中weak的實現(xiàn)代碼示例,小編覺得挺不錯的,現(xiàn)在分享給大家,也給大家做個參考。一起跟隨小編過來看看吧
    2018-05-05
  • 一篇文章搞定iOS的Cookie存取

    一篇文章搞定iOS的Cookie存取

    Cookie中文名稱叫做“小型文本文件”,指某些網(wǎng)站為了辨別用戶身份而存儲在用戶本地終端上的數(shù)據(jù)(通常經(jīng)過加密),下面這篇文章主要給大家介紹了關(guān)于iOS的Cookie存取的相關(guān)資料,需要的朋友可以參考借鑒,下面來一起看看吧。
    2017-12-12
  • iOS如何開發(fā)簡單的手繪應用實例詳解

    iOS如何開發(fā)簡單的手繪應用實例詳解

    這篇文章主要給大家介紹了關(guān)于iOS如何開發(fā)簡單的手繪應用的相關(guān)資料,文中通過示例代碼介紹的非常詳細,對大家的學習或者工作具有一定的參考學習價值,需要的朋友們下面隨著小編來一起學習學習吧
    2020-09-09
  • iOS實現(xiàn)輸入框跟隨鍵盤自動上移的實例代碼

    iOS實現(xiàn)輸入框跟隨鍵盤自動上移的實例代碼

    本篇文章主要介紹了iOS實現(xiàn)輸入框跟隨鍵盤自動上移的實例代碼,小編覺得挺不錯的,現(xiàn)在分享給大家,也給大家做個參考。一起跟隨小編過來看看吧
    2017-04-04
  • iOS中的二級菜單及Cell的展開收起示例

    iOS中的二級菜單及Cell的展開收起示例

    本篇文章主要介紹了iOS中的二級菜單及Cell的展開收起示例,具有一定的參考價值,感興趣的小伙伴們可以參考一下。
    2017-08-08
  • 詳解iOS項目基本框架搭建

    詳解iOS項目基本框架搭建

    本篇文章給讀者們詳細分析了iOS項目基本框架搭建的過程的注意點,對此有需要的朋友學習參考下。
    2018-02-02

最新評論