gpt4 book ai didi

github - 文件 ios/Flutter/Flutter.framework/Flutter 是 351.71 MB;这超过了 GitHub 的文件大小限制 100.00 MB

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

我正在尝试将我的最新提交推送到 GitHub。但是正在向我显示以下错误:

remote: Resolving deltas: 100% (43/43), completed with 41 local objects.
remote: error: GH001: Large files detected. You may want to try Git Large File Storage - https://git-lfs.github.com.
remote: error: Trace: c8bf146b362d19d128f2ffe74b5b5b9d
remote: error: See http://git.io/iEPt8g for more information.
remote: error: File ios/Flutter/Flutter.framework/Flutter is 351.71 MB; this exceeds GitHub's file size limit of 100.00 MB
To https://github.com/ChandraPrakashJangid/geo_tags.git
! [remote rejected] master -> master (pre-receive hook declined)

最佳答案

您似乎正在将构建文件夹和其他生成的文件推送到 github。编辑您的 .gitignore 文件以仅推送 lib 和其他必要文件。

一个示例 flutter .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/
.dart_tool/
.flutter-plugins
.packages
.pub-cache/
.pub/
/build/

# Android related
**/android/**/gradle-wrapper.jar
**/android/.gradle
**/android/captures/
**/android/app/release/
**/android/gradlew
**/android/gradlew.bat
**/android/local.properties
**/android/**/GeneratedPluginRegistrant.java

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

# Exceptions to above rules.
!**/ios/**/default.mode1v3
!**/ios/**/default.mode2v3
!**/ios/**/default.pbxuser
!**/ios/**/default.perspectivev3
!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages

关于github - 文件 ios/Flutter/Flutter.framework/Flutter 是 351.71 MB;这超过了 GitHub 的文件大小限制 100.00 MB,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59588400/

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