Back to git main page

Sometimes when trying to clone repos with large file , a curl error can occur :

Cloning into 'project'... error: RPC failed; HTTP 502 curl 22 The requested URL returned error: 502 fatal: the remote end hung up unexpectedly

Change the buffer size :

git config http.postBuffer 524288000

and then set the origin ::

git remote add origin git@github.com:username/project.git

after that clone your project. Your problem should be resolved.