一区二区三区在线-一区二区三区亚洲视频-一区二区三区亚洲-一区二区三区午夜-一区二区三区四区在线视频-一区二区三区四区在线免费观看

服務器之家:專注于服務器技術及軟件下載分享
分類導航

PHP教程|ASP.NET教程|Java教程|ASP教程|編程技術|正則表達式|C/C++|IOS|C#|Swift|Android|VB|R語言|JavaScript|易語言|vb.net|

服務器之家 - 編程語言 - IOS - iOS 配置.gitignore文件詳細介紹

iOS 配置.gitignore文件詳細介紹

2021-03-15 15:47iOS開發(fā)網(wǎng) IOS

這篇文章主要介紹了iOS 配置.gitignore文件詳細介紹的相關資料,需要的朋友可以參考下

iOS 配置.gitignore文件詳細介紹

為什么要配置.gitigore

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

簡便配置

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

?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# 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會幫助你生成下面的配置。

?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
# 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

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

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

原文鏈接:http://www.jianshu.com/p/35780446b133

延伸 · 閱讀

精彩推薦
主站蜘蛛池模板: 青青草原伊人网 | 午夜亚洲 | 91污无限制破解安卓2021 | 亚洲区精品久久一区二区三区 | 亚洲国产精品综合久久一线 | 色婷婷激婷婷深爱五月老司机 | 500福利第一导航 | 美女撒尿无遮挡免费中国 | 成人免费体验区福利云点播 | 国产一区二区三区久久精品小说 | 免费观看日本视频 | 日本嫩小xxxxhd | 粗暴hd另类另类 | 5g在线观看| 青青草国产精品久久久久 | 爆操萝莉| 国产色资源 | 91九色porn偷拍在线 | 5月色婷婷 | 国产18在线 | 国产精品毛片高清在线完整版 | 成全动漫视频在线观看 | 日韩爱爱| 10个免费货源网站 | 国产精品久久久久久影院 | 日韩视频在线精品视频免费观看 | 2021久久| 亚洲高清在线视频 | 欧美同性猛男videos | 国产免费一区二区三区免费视频 | 91看片淫黄大片.在线天堂 | 黑人k8经典 | 天天天天天干 | 亚洲XXX午休国产熟女屁 | a4yy欧美一区二区三区 | 国产欧美一区二区精品性色 | 深夜免费在线观看 | 肥胖老寡妇做性 | 無码一区中文字幕少妇熟女网站 | 夫妻性生活一级黄色片 | 日韩欧美中文字幕出 |