gpt4 book ai didi

git - 如何重置 Git LFS 带宽?

转载 作者:行者123 更新时间:2023-12-04 12:38:06 32 4
gpt4 key购买 nike

我已将大小为 876MB 的文件推送到 git lfs,这分别显示了我总共 0.9 的可用存储空间和带宽,但是,然后我做了一些更改,例如删除了旧存储库并卸载了 git lfs,因为我将图像大小从 900MB 减少到 800MB 和然后推回我新创建的git repo。当我看到 lfs 的帐单时,它显示了 0/1GB(将更新为 0.8)的存储空间,但有 1.7/1GB 的带宽,并且在 Github 禁用了我的“git lfs”帐户之后。我实际上想删除带宽存储,即将其重置为以前的状态。有什么解决办法吗?任何建议高度赞赏

enter image description here

最佳答案

2021 年 9 月更新,关于 radmap(尚未交付):

"Git LFS moves to metered billing"

LFS billing will switch from prepaid data packs to metered (pay for what you use).

The free entitlements (for example, 1GB storage and 1GB bandwidth) will be unchanged.

Customers will not be billed for LFS storage that occurred prior to the start of metering.

Intended Outcome

This change brings LFS billing in line with how Packages and Actions bill.
Instead of prepaying for a quota, you'll only be charged for what your repositories use.

How will it work?

We'll calculate how much storage is used and measure how much outbound bandwidth is used.
Each month, you'll be charged per-unit for each of these resources.



原答案:20219 年 12 月:
来自 GitHub 的“ About storage and bandwidth usage”确实提到:

When you download a file tracked with Git LFS, the total file size is counted against the repository owner's bandwidth limit.
Git LFS uploads do not count against the bandwidth limit.


所以你不能删除或重置带宽:它已经被你过去的下载占用了。

For example:

  • If you push a 500 MB file to Git LFS, you'll use 500 MB of your allotted storage and none of your bandwidth. If you make a 1 byte change and push the file again, you'll use another 500 MB of storage and no bandwidth, bringing your total usage for these two pushes to 1 GB of storage and zero bandwidth.
  • If you download a 500 MB file that's tracked with LFS, you'll use 500 MB of the repository owner's allotted bandwidth. If a collaborator pushes a change to the file and you pull the new version to your local repository, you'll use another 500 MB of bandwidth, bringing the total usage for these two downloads to 1 GB of bandwidth.

加:

Forking and pulling a repository counts against the parent repository's bandwidth limit.


因此,如果您的存储库被 fork ,您甚至不必为使用带宽做任何事情。

关于git - 如何重置 Git LFS 带宽?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59223469/

32 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com