$ git clone --verbose https://halprdgit01.hq.halw.com:8443/scm/nd/hap_group_ui-automation-2023.git
Cloning into 'hap_group_ui-automation-2023'...
Username for 'https://halprdgit01.hq.halw.com:8443': mlr
Password for 'https://mlr@halprdgit01.hq.halw.com:8443':
POST git-upload-pack (142 bytes)
POST git-upload-pack (gzip 4030 to 2040 bytes)
remote: Enumerating objects: 40934, done.
remote: Counting objects: 100% (40934/40934), done.
remote: Compressing objects: 100% (21475/21475), done.
error: RPC failed; curl 18 transfer closed with outstanding read data remaining
error: 3784 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output
Refer: https://stackoverflow.com/questions/6842687/the-remote-end-hung-up-unexpectedly-while-git-cloning
Quick solution:
With this kind of error, I usually start by raising the postBuffer size by:
git config --global http.postBuffer 524288000
(some comments below report having to double the value):
git config --global http.postBuffer 1048576000
