My git
client repeatedly fails with the following error after trying to clone the repository for some time.
What could be the issue here?
Based on this answer, I tried following (with https url):
git clone --depth 25 url-here
git fetch --depth 50
git fetch --depth 100
git fetch --depth 200
...and so on
git fetch --unshallow
- and it's done.The process obviously takes much more time, but in my case setting http.postBuffer
and core.compression
didn't help.
UPD: I found out that fetching via ssh works for any repo size (discovered accidentally), done with git clone
, given you have created ssh keys. Once repo is fetched, I change remote address using git remote set-url