git push 提示:error: RPC failed; HTTP 413 curl 22 The requested URL returned error: 413

1. 详细报错信息

  • 执行 git push http://git.xxx.com/app/guanghe-app.git --all 报错
报错信息:
error: RPC failed; HTTP 413 curl 22 The requested URL returned error: 413
fatal: the remote end hung up unexpectedly
fatal: the remote end hung up unexpectedly
Everything up-to-date
  • 上述问题是由于http方式push文件有大小的限制导致的,改为ssh的方式提交就好。

2.通过ssh上传

Enumerating objects: 15951, done.
Counting objects: 100% (15951/15951), done.
Delta compression using up to 6 threads
Compressing objects: 100% (2863/2863), done.
Writing objects: 100% (15951/15951), 35.04 MiB | 23.89 MiB/s, done.
Total 15951 (delta 12568), reused 15905 (delta 12533)
remote: Resolving deltas: 100% (12568/12568), done.
To ssh://10.1.8.151:1122/app/guanghe-app.git
 * [new branch]      dev -> dev

  • 看仓库已经上传成功
    git push 提示:error: RPC failed; HTTP 413 curl 22 The requested URL returned error: 413_第1张图片

你可能感兴趣的:(开源工具学习,git,rpc,http)