LFS支持与我们的Azure GIT回购已经工作了很长时间,但突然之间,它失败了,当推动提交与大文件。它开始上传。看上去它开始了好几次,然后就失败了。
C:\Git\...>git push
Locking support detected on remote "origin". Consider enabling it with:
$ git config lfs.https://...@dev.azure.com/.../.../_git/....git/info/lfs.locksverify true
LFS: Client error: https://...@dev.azure.com/.../.../_git/.../info/lfs/objects/... from HTTP 413
Uploading LFS objects: 0% (0/1), 0 B | 18 MB/s, done.
error: failed to push some refs to 'https://dev.azure.com/.../.../_git/...'客户端错误是:只支持application/vnd.git-lfs和application/vnd.git-lfs+json。
使用:
2.33.1.windows.1
更新问题是一致的。添加一个新文件会产生同样的错误。我重新安装了GIT /GIT,并清理了GIT文件夹。没有变化。
发布于 2021-11-09 09:00:32
在调查时偶然发现了这个https://developercommunity.visualstudio.com/t/git-lfs-push-got-413-error/867488。调用下面的命令解决了我的问题。
git config http.version HTTP/1.1https://stackoverflow.com/questions/69894412
复制相似问题