即使出错也如何从git-lfs中获取大文件 [英] How to get large files from git-lfs when error even though you have credits

查看:389
本文介绍了即使出错也如何从git-lfs中获取大文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试将100 GB的LFS积分添加到我的github帐户,但仍然获得:

I've tried adding 100 GB of LFS credits to my github account but still get:

此存储库超出了其数据配额.购买更多数据包以恢复访问."

"This repository is over its data quota. Purchase more data packs to restore access."

此仓库:

https://github.com/aarch64-laptops/prebuilt

我尝试用我的帐户将存储库分叉到一个新存储库,但问题相同.还有其他方法来获取这些大文件吗?

And I've tried forking the repo to a new repo under my account but same issue. Any other way to get these large files?

推荐答案

分叉无法解决问题,如

Forking wouldn't solve the problem, as stated in nabla-c0d3/nassl issue 17

说实话,我对GitHub如何为公共项目支持git-lfs感到非常失望.对存储和带宽收费毫无意义,特别是因为切换到git-lfs可以减少GitHub的带宽使用/成本,而不是仅将大文件存储在git中.我不知道每个配额都有配额的事实,甚至更疯狂.

To be honest, I'm very disappointed with how GitHub supports git-lfs for public projects. Charging for storage and bandwidth makes no sense, especially since switching to git-lfs reduces bandwidth usage / cost for GitHub, compared to just storing big files in git. The fact the quotas are for every fork, which I did not know, is even crazier.

我同意您的观点,git-lfs还有很多不足之处,我想您提出了一个很好的观点,那就是向我们收费以节省他们的钱.

I agree with you that git-lfs leaves a lot to be desired, and I think you raise an excellent point about charging us for something that saves them money.

如果您不关心那些大文件的历史记录,可以在您获得额外信用的情况下进行:

If you don't care about the history of those large file, you could, in the context of your additional credit:

  • 创建一个新的本地存储库
  • 在其中添加其中一个大文件
  • 添加,提交和推送
  • 对其他大文件重复执行一次(查看进程是否在任何时候阻塞)

但是:如果您还没有这些大文件的本地副本,则只需 git lfs fetch 让他们回来.

But: if you don't have already a local copy of those large files, only a git lfs clone + git lfs fetch would be able to get them back.

然后...如果带宽限制已到达,将无济于事.
您需要从第三方来源获取这些文件,或者将您的案例请求给 GitHub支持.

And... if the bandwidth limit is already reached, that won't help.
You need to get those files from a third-party source, or plead your case to GitHub support.

这篇关于即使出错也如何从git-lfs中获取大文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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