如何将大文件推送到github? [英] How to push large size file to github?

查看:122
本文介绍了如何将大文件推送到github?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试推送大小为466.00 MB的 ExpressPlay.framewrok . 但是GitHub不允许推送如此大的文件,其限制为100 MB.

I am trying to push ExpressPlay.framewrok which is of size 466.00 MB. But GitHub not allowing to push such large files its limit is 100 MB.

我试图在存储库中使用 git lfs install 命令来支持大文件.但它不起作用.

I have tried to use git lfs install command in my repository to support large files. But its not working.

有人知道解决方案吗?

预先感谢

推荐答案

上载4 GB存储库时,我遇到了类似的问题. 我写了这个bat脚本来按类型推送文件.这个使 推得更快.

I had similar problem while uploading a 4 gb repository. I wrote this bat script to push files by type. This made push a lot faster.

git add **/*.$1
git commit -m "$1"
git push

对于Windows

set ext=%1
git add **/*.%ext%
git commit -m "%ext%"
git push

要上传我要使用的所有.js个文件

To upload all .js files I'd use

>>> this.bat js

这篇关于如何将大文件推送到github?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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