Git推送失败:RPC失败;结果= 22,HTTP代码= 413

rhfm7lfc  于 2023-01-24  发布在  Git
关注(0)|答案(1)|浏览(138)

我们正在使用gerrit进行git repos。我正在尝试将现有的项目推送到一个新的仓库(数据大小:264MB)。我按照以下步骤操作:

>cd <project/path>
>git init
>git remote add origin ssh://<user>@xxxxx:29418/<project>
>git branch --set-upstream-to=origin/master master
>git push --all

但是,它给我git push的错误

C:\xxxxxxxx>git push --all
Counting objects: 14174, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (13610/13610), done.
error: RPC failed; HTTP 411 curl 22 The requested URL returned error: 411 Length
Required
fatal: The remote end hung up unexpectedly
Writing objects: 100% (14174/14174), 39.95 MiB | 2.65 MiB/s, done.
Total 14174 (delta 3464), reused 0 (delta 0)
fatal: The remote end hung up unexpectedly
Everything up-to-date

编辑:我们尝试了git config http.postBuffer 524288000来解决这个问题,但是我们得到了同样的错误

相关问题