Reputation: 551
I'm getting the following warnings every time I make a push to my git repo
remote: warning: GH001: Large files detected. You may want to try Git Large File Storage - https://git-lfs.github.com.
remote: warning: See http://git.io/iEPt8g for more information.
remote: warning: File build/app/outputs/flutter-apk/app-debug.apk is 63.00 MB; this is larger than GitHub's recommended maximum file size of 50.00
MB
These are from my .gitignore file
# Flutter/Dart/Pub related
**/doc/api/
**/ios/Flutter/.last_build_id
.dart_tool/
.flutter-plugins
.flutter-plugins-dependencies
.packages
.pub-cache/
.pub/
/build/
Additionally I've added the following line to get through the situation
build/app/outputs/flutter-apk/app-debug.apk
Everything seems fine, yet app-debug.apk is getting pushed every time. How to solve this issue?
Upvotes: 0
Views: 1166
Reputation: 31
Having same issue but this didn't solve the issue as I can't even locate the uploaded APK on directories even after deleting them and running flutter clean
Upvotes: 0
Reputation: 1522
Try flutter clean
before committing to git.
because, after flutter clean
, build
directory will not be there at all..so, no debug APK.
Upvotes: 1