I am using Visual studio 2008 command prompt to clone a git repo. After downloading 6.12GiB of data, I am getting the below error.
D:\git>git clone -c http.postBuffer=2147483648 [email protected]/y/z.git download
Cloning into 'download'...
remote: Enumerating objects: 5053615, done.
remote: Counting Objects: 100% (5053615/5053615) done.
remote: Compressing Objects: 100% (948773/948773) done.
Connection reset by 15.x.x.x port 2215), 6.12GiB | 807.00 KiB/s
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
I did set the http.postBuffer=2147483648 to the above and the http.lowspeedlimit=0, http.lowspeedtime=999999.
What might be the issue in downloading the repo, any resolution on the above issue ?
Your connection timed out. (6.12GiB at 807KiB/s is more than two hours; even if it was moving faster than 807KiB/s before then it's still a long time. Also, what's in this repo that it's 6+ gigs?)
You have a couple options here:
git clone --filter=blob:none <url>. This will get the trees and commits now, and then get blobs (file contents) as necessary.git clone --depth=0 <url>(or deeper if you want). This will get thedepthmost recent commits now, but no prior history.git bundle. This is a somewhat complicated procedure, but if there are a lot of people trying to clone this very large repo then a bundle can help streamline the process.