My git
client repeatedly fails with the following error after trying to clone the repository for some time.
What could be the issue here?
Note: I have registered my SSH key with the GIT hosting provider
Receiving objects: 13% (1309/10065), 796.00 KiB | 6 KiB/s
fatal: The remote end hung up unexpectedly
I had a similar problem, but with a bamboo job. Bamboo was failing doing a local clone (local but over an SSH proxy) of a cached repository, I deleted the cache and after that it worked, but any time it tries to clone from the local cache there is a failure. Seems like a problem with bamboo's version of the SSH proxy not git per se.
This is due the internet connectivity issue, i faced the same issue. I did a shallow copy of code using
Later unshallowed the clone using
I was doing git push from my OS X El Capitan Mac. I was getting same error, I tried everything to fix, what I found on google/stackoverflow. As far as version is concerned I am using fairly latest version of github which is 2.7.4. I have create a project in my local system, and I wanted this to be public in my github account. Project size was not around 8MB. I noticed that when I was pushing some files of size around 1.5MB, it was pushing properly, but with large size failed for me, with same error,
Only option I had was to push changes in chunk of MB. Now I have pushed all changes. This is workaround for me until I get fix for this solution.
So you can also try pushing change in multiple commit. Or if you have multiple folder you can push changes by each folder (if folder size is not big).
Hope this will help you to continuous working on project.
Obs.: Changing
http.postBuffer
might also require to set up the Nginx configuration file for gitlab to accept larger body sizes for the client, by tuning the value of client_max_body_size.However, there is a workaround if you have access to the Gitlab machine or to a machine in its network, and that is by making use of
git bundle
.git bundle create my-repo.bundle --all
git clone my-repo.bundle
git remote set-url origin "path/to/your/repo.git"
git push
All the best!
Same error with Bitbucket. Fixed by
Well, I wanted to push a 219 MB solution, but I had no luck with
And what's the point of having a 525 MB post buffer anyway? it's silly. So I looked at the git error below:
So git want's to post 5 MB, then I made the post buffer 6 MB, and it works