问题描述
我正在使用130MB的GoogleMaps pod,因此github不允许我上传我的项目.解决方法是什么?
I'm using the GoogleMaps pod which is 130MB, so github won't let me upload my project. What is the workaround for this?
推荐答案
我建议在git存储库中排除Pods目录(通过将其添加到.gitignore文件中).可以使用您的Podfile重新创建Pod,因此您不必将其存储在存储库中.
I suggest excluding Pods directory (by adding it to your .gitignore file) in your git repository. Pods can be recreated with your podfile, so you don't have to store them in your repository.
其他方法,例如当您拥有框架时,您要自己进行预编译并且不希望其他团队成员再次进行编译,请使用git lfs: https://git-lfs.github.com
Other approach, e.g. when you have framework you precompiled yourself and don't want your other team members to need compile it again, is to use git lfs: https://git-lfs.github.com
这篇关于当项目超过100 MB时,如何将我的项目上传到Github?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!