̃Gg[͂ĂȃubN}[Nɒlj

git :: HTTP 502 curl 22 The requested URL returned error: 502 Bad Gateway の対処方法



下記のようなエラーが出て、push できない場合の対処方法です。

% git push
  :
error: RPC failed; HTTP 502 curl 22 The requested URL returned error: 502 Bad Gateway
  :

原因は、ファイルサイズが大きすぎて push に失敗しています。
git の設定で、push できるファイルサイズを大きくすることで解決します。

  • push できるファイルサイズを500MBに変更
% git config http.postBuffer 524288000

.git/gitconfig に以下のような設定が追記されます。

  • .git/gitconfig
[http]
    postBuffer = 524288000

~/.gitconfig に設定したい場合(すべてのgitリポジトリに反映したい場合)

% git config --global http.postBuffer 524288000





unix/command/git/error/http_postbuffer.txt