我们正在使用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来解决这个问题,但是我们得到了同样的错误
1条答案
按热度按时间2ledvvac1#
已讨论主题
Github Push Error: RPC failed; result=22, HTTP code = 413