[gitea]-error: RPC failed; HTTP 413 curl 22 The requested URL returned error: 413
[gitea]-error: RPC failed; HTTP 413 curl 22 The requested URL returned error: 413

[gitea]-error: RPC failed; HTTP 413 curl 22 The requested URL returned error: 413

[gitea]error: RPC failed; HTTP 413 curl 22 The requested URL returned error: 413
Enumerating objects: 226, done.
Counting objects: 100% (226/226), done.
Delta compression using up to 8 threads
Compressing objects: 100% (191/191), done.
Writing objects: 100% (225/225), 1.53 MiB | 3.58 MiB/s, done.
Total 225 (delta 71), reused 0 (delta 0), pack-reused 0
error: RPC failed; HTTP 413 curl 22 The requested URL returned error: 413
send-pack: unexpected disconnect while reading sideband packet
fatal: the remote end hung up unexpectedly
Everything up-to-date

解決方案:

# nginx
nginx.conf 增加 client_max_body_size 50m;

#apache2
httpd.conf 增加 LimitRequestBody 52428800

# git
git config –global http.postBuffer 524288000