批量响应:此存储库已禁用 Git LFS?

问题描述 投票:0回答:2

现在,github向用户提供免费的私有仓库。因此,我创建了一个私人存储库并尝试使用

Git LFS

当我尝试将文件推送到远程时,出现此错误:

batch response: Git LFS is disabled for this repository.
batch response: Git LFS is disabled for this repository.
batch response: Git LFS is disabled for this repository.
Uploading LFS objects:   0% (0/100), 0 B | 0 B/s, done
batch response: Git LFS is disabled for this repository.
batch response: Git LFS is disabled for this repository.
batch response: Git LFS is disabled for this repository.
error: failed to push some refs to 'https://github.com/mrdulin/programming-ebooks.git'

这是否意味着私人回购不支持

Git LFS

github git-lfs
2个回答
5
投票

阅读此问题后:https://github.com/git-lfs/git-lfs/issues/2481

我联系

[email protected]
,他们解决了我的问题。以下是邮件内容:

你好,

感谢您的来信,对于给您带来的麻烦,我们深表歉意。我刚刚重建了您的 Git LFS 使用情况,现在已在您的帐户上重新启用。

谢谢, 史蒂夫

现在我可以使用

git-lfs

Connection to github.com closed by remote host. 6.0 MB/s
Uploading LFS objects:  51% (275/540), 5.5 GB | 5.2 MB/s

0
投票

对于任何面临此问题并访问此处寻求解决方案的人来说,我偶然找到了解决方案,但我没有解释它为何有效。只需在推送之前卸载 git lfs 就可以了。

git lfs install --skip-smudge
git lfs track large_file_needed
git add .gitattributes large_file_needed
git commit -m "whatever"
git lfs uninstall
git push
© www.soinside.com 2019 - 2024. All rights reserved.