当项目超过100 MB时,如何将我的项目上传到Github? [英] How can I upload my project to Github when it is over 100 MB?

查看:92
本文介绍了当项目超过100 MB时,如何将我的项目上传到Github?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用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:

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?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆