项目管理 gitignore 忽略文件的设置

2021-12-22  本文已影响0人  一滴矿泉水

1、忽略某个文件目录下面的修改可以

XXX文件 + / :代表忽略掉此目录下的文件修改 例如:忽略以下三个文件下的修改

例如:

build/
!build/ExportOptions.plist
DerivedData/ (项目编译缓存文件)

# Xcode
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
#生成的构建文件(项目编译的缓存文件,每次编译都会重新生成)
# Build generated

build/
!build/ExportOptions.plist
DerivedData/

#各种设置 (Xcode 使用这些文件来存储了用户对项目的偏好设置,跟踪打开了哪些文档、显示了哪些窗口、它们的大小以及项目的显示方式,且包含断点信息)
# Various settings

*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata/

# Other

*.moved-aside
*.xccheckout
*.xcscmblueprint
.DS_Store

# Obj-C/Swift specific

*.hmap
*.ipa
*.dSYM.zip
*.dSYM

#pod文件的忽略处理
# 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/

# Add this line if you want to avoid checking in source code from the Xcode workspace
# *.xcworkspace
# 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://docs.fastlane.tools/best-practices/source-control/#source-control

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

# Code Injection
# After new code Injection tools there's a generated folder /iOSInjectionProject
# https://github.com/johnno1962/injectionforxcode

iOSInjectionProject/


文章持续更新中、希望对各位有所帮助、有问题可留言 大家共同学习.

上一篇下一篇

猜你喜欢

热点阅读