Azure DevOps:git 推送因具有大文件 (>150MB) 的 LFS 而失败

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

尽管 Azure DevOps 文档提到即使没有 LFS,文件大小限制也是 5GB,但我对大小大于 ~100MB 的 LFS 文件进行的所有推送都会失败,并显示此消息,我发现很难从中提取有用信息:

Uploading LFS objects:   0% (0/1), 0 B | 7.4 MB/s, done.
LFS: Client error &{%!!(string=https) %!!(string=) %!!(*url.Userinfo=<nil>) %!!(string=yyy.visualstudio.com) %!!(string=/engineering/_git/3d-printing/info/lfs/objects/07fe4f13daae6a98e27d50c6bb900850ec810f59bcf09b03ededfa02f38be225) %!!(string=) %!!(bool=false) %!!(bool=false) %!!(string=) %!!(string=) %!!(string=)}s(MISSING) from HTTP 413
error: failed to push some refs to 'https://yyy.visualstudio.com/engineering/_git/3d-printing'
Completed with errors, see above.

想知道以前是否有人遇到过类似的情况以及可能导致此问题的原因是什么?谢谢!

使用 Git 2.42.0 和 git LFS 版本 3.4.0 从运行 Windows 11 的不同 PC 进行推送会产生相同的结果。

git azure-devops git-lfs
1个回答
0
投票

LFS:来自 HTTP 413 的客户端错误 &{%!!(string=https) %!!(string=) %!!(*url.Userinfo=) %!!(string=yyy.visualstudio.com) %)

HTTP 413 通常是代理或任何其他网络/机器限制。

要解决此问题,您可以在本地计算机上运行以下命令。

git config http.version HTTP/1.1

另一方面,你也可以检查本地代理服务器的存在是否会影响 git lfs。

© www.soinside.com 2019 - 2024. All rights reserved.