An included sqlite database shipped with my Android app is now larger than 100 MB, so GitHub (GH) rejects my push
of the updated file via Android Studio's (AS) version control. I can't currently reduce this file below the 100 Mb limit and it's required for the app. I've installed Git-LFS and taken the following steps via AS Terminal:
git lfs install
git lfs track "*.db"
git lfs track "app/src/main/assets/*.db"
git add .gitattributes
When I try to push
the updated database via AS, the push
is rejected and the AS Console message is:
remote: error: See http://git.io/iEPt8g for more information.
remote: error: File app/src/main/assets/frequency.db is 138.46 MB; this exceeds GitHub's file size limit of 100.00 MB
remote: error: GH001: Large files detected. You may want to try Git Large File Storage - https://git-lfs.github.com.
Local commit
s seem to work fine.
Before the database grew above 100 MB, commit
s and push
es to GH worked fine via AS, so I assume I have AS configured properly for version control using GH. Also, this means previous versions of the database (those below the 100 MB limit) are in my GitHub repository. I'd like to retain those versions in GH if possible.
Android Studio version: Artic Fox, 2020.3.1 patch 3 (Windows), with Git and GitHub bundled plugins enabled
How do I use Git-LFS in Android Studio? Is there a different git plug-in I should install? Is there a configuration/setting change I need to make in AS?
I've reviewed the following SO questions, but virtually none of them discuss using Git-LFS in AS:
- Can't push to GitHub because of large file which I already deleted
- git-lfs command not found webstorm
- not able to push file more than 100mb to git hub
- Files too large warning in Github Desktop after configuring Git LFS
- Staged git lfs files not being intercepted by git-lfs
- Git reports large file error despite using Git LFS
I've also reviewed the following, but there is no discussion of using Git-LFS in AS: