git push ...
...
error: RPC failed; HTTP 500 curl 22 The requested URL returned error: 500
send-pack: unexpected disconnect while reading sideband packet
...
GitのPOSTバッファサイズを大きくする
$ git config --get http.postBuffer. error: key does not contain variable name: http.postBuffer. 設定されてなければデフォルトの 1MB 50MB に設定 $ git config http.postBuffer 52428800
GitのPOSTバッファサイズを大きくする
SSH ではなく HTTP で Git を使っている場合は、Git の設定で POST バッファサイズを大きくしてみましょう。
クローン中のエラーの例fatal: pack has bad object at offset XXXXXXXXX: inflate returned -5
ターミナルを開いて入力してください:
git config http.postBuffer 52428800値はバイト単位で指定されるため、上記の場合、バッファサイズは50MBに設定されています。デフォルトは1MBです。
Git のトラブルシューティング | GitLab 2023