'Flutter - app-debug.apk is getting uploaded in github

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?



Solution 1:[1]

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

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Anyanwu Nzubechi