When I push large changes to git (or sometimes clone from git) it fails with
error: RPC failed; result=22, HTTP code = 502
For example:
git push origin master
Counting objects: 1107, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (357/357), done.
Writing objects: 100% (1107/1107), 24.00 MiB | 682.00 KiB/s, done.
Total 1107 (delta 745), reused 1107 (delta 745)
error: RPC failed; result=22, HTTP code = 502
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly