gpt4 book ai didi

ios - 为什么 ios/build 文件夹没有包含在 .gitignore 文件中?

转载 作者:行者123 更新时间:2023-12-04 17:12:49 25 4
gpt4 key购买 nike

为什么默认情况下 ios/build 没有包含在 gitignore 中?

Untracked files:
(use "git add <file>..." to include in what will be committed)
ios/build/

/.gitignore 文件

# Miscellaneous
*.class
*.log
*.pyc
*.swp
.DS_Store
.atom/
.buildlog/
.history
.svn/

# IntelliJ related
*.iml
*.ipr
*.iws
.idea/

# The .vscode folder contains launch configuration and tasks you configure in
# VS Code which you may wish to be included in version control, so this line
# is commented out by default.
#.vscode/

# Flutter/Dart/Pub related
**/doc/api/
**/ios/Flutter/.last_build_id
.dart_tool/
.flutter-plugins
.flutter-plugins-dependencies
.packages
.pub-cache/
.pub/
/build/

# Web related
lib/generated_plugin_registrant.dart

# Symbolication related
app.*.symbols

# Obfuscation related
app.*.map.json

# Android Studio will place build artifacts here
/android/app/debug
/android/app/profile
/android/app/release

/lib/credentials.dart

/ios/.gitignore 文件:

*.mode1v3
*.mode2v3
*.moved-aside
*.pbxuser
*.perspectivev3
**/*sync/
.sconsign.dblite
.tags*
**/.vagrant/
**/DerivedData/
Icon?
**/Pods/
**/.symlinks/
profile
xcuserdata
**/.generated/
Flutter/App.framework
Flutter/Flutter.framework
Flutter/Flutter.podspec
Flutter/Generated.xcconfig
Flutter/app.flx
Flutter/app.zip
Flutter/flutter_assets/
Flutter/flutter_export_environment.sh
ServiceDefinitions.json
Runner/GeneratedPluginRegistrant.*

# Exceptions to above rules.
!default.mode1v3
!default.mode2v3
!default.pbxuser
!default.perspectivev3

最佳答案

gitignore 中所述:

If there is a separator at the beginning or middle (or both) of the pattern, then the pattern is relative to the directory level of the particular .gitignore file itself.

Otherwise the pattern may also match at any level below the .gitignore level.

一旦您将模式更改为构建/,请不要忘记您还有一个,以验证它是否有效:

git check-ignore -v -- ios/build/aFile

那应该打印 .gitignore 规则行,它会忽略文件夹。

关于ios - 为什么 ios/build 文件夹没有包含在 .gitignore 文件中?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/69157866/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com