尽管我减少了存储库的大小,但我无法使用 git lfs 将任何内容推送到 git

i can't push anything to git using git lfs although i reduce the size of repository

我正在使用 git lfs 将大文件放入 github。今天我收到了这封邮件:

Git LFS has been disabled on your personal account because you’ve exceeded your data plan by at least 150%. Please purchase additional data packs to cover your bandwidth and storage usage:

https://github.com/account/billing/data/upgrade i don't want to purchase so i deleted all of my files from github to reduce the size. so now there is no file in github. and now i want to push a small file to github with the following command:

 git push origin master

但结果如下:

Uploading LFS objects:   0% (0/19), 0 B | 0 B/s, done.
batch response: This repository is over its data quota. Account responsible for LFS bandwidth should purchase more data packs to restore access.
error: failed to push some refs to 'https://github.com/something/something.git'

为什么?我从 github 中删除了所有文件,大小应该很小,但它不允许我推送任何内容。我该怎么办?

您仍然收到配额错误很可能是因为您仍然在一个或多个包含非常大文件的分支中提交。请记住,您的 Git 历史是曾经发生的一切的快照。从当前分支删除文件并推送仅意味着您不会添加 more 非常大的内容。已经在历史记录中的内容仍然存在。

要了解如何开始从您的存储库中删除大文件,请参阅这个有用的 Stack Overflow 问题:

How to remove/delete a large file from commit history in Git repository?