gitgitlab

GIT push, HTTP code = 502 error


My project size is 1,63 GB (Magento Project) I had followed this tutorial

when I do this command : git push -u origin master , it is starting to write objects and after that I getting this error in git console:

error: RPC failed, result=22, HTTP code = 502
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly

What should I do to make this work ?

The result of the git remote -v is : enter image description here


Solution

  • The remote end hangs up because the pack size you are trying to transmit exceeds the maximum HTTP post size. Try to limit this pack size with

    git config --local http.postBuffer 157286400
    

    to 150MB.