File ios / Flutter / Flutter.framework / Flutter为351.71 MB;这超出了GitHub的文件大小限制100.00 MB

问题描述 投票:0回答:1

我正在尝试将最新的提交推送到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 flutter commit git-commit
1个回答
0
投票

好像您将构建文件夹和其他生成的文件推送到github。编辑您的.gitignore文件,仅推送lib和其他必要的文件。

样本颤动.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
© www.soinside.com 2019 - 2024. All rights reserved.