简体   繁体   English

Android项目资产在Git回购中占用了大量空间

[英]Android project assets consume enormous amount of space in Git repo

In my Android project, I have a lot of heavy binary assets under <project>/src/main/assets . 在我的Android项目中, <project>/src/main/assets下有很多繁重的二进制<project>/src/main/assets There's numerous files that collectively add up to tens, maybe hundreds of megabytes. 有许多文件加起来总计数十兆,甚至数百兆字节。 Git LFS might not be an option here due to the number of files, but I'm not sure. 由于文件数量众多,Git LFS在这里可能不是一个选项,但是我不确定。 What would be everyone's recommendation to keep these files out of Git to keep main repository size small? 每个人对将这些文件保留在Git中以使主存储库保持较小的建议是什么? This becomes especially important when hosting git repositories on cloud services like Bitbucket and Github. 当在Bitbucket和Github等云服务上托管git存储库时,这一点尤其重要。

There is an open-source project aimed at handling large files in .git. 有一个开源项目旨在处理.git中的大文件。 It is pretty popular and should help you in your case. 它很受欢迎,可以为您提供帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM