git clone fatal: the remote end hung up unexpectedly
% git clone http://www/XXX.git Cloning into 'XXX'... remote: Counting objects: 28667, done. remote: Compressing objects: 100% (11021/11021), done. fatal: the remote end hung up unexpectedly00 MiB | 1.45 MiB/s fatal: early EOF fatal: index-pack failed
Soultion
git clone --depth 1 http://www/XXX.git
git config --global http.postBuffer 104857600000 export GIT_TRACE_PACKET=1 export GIT_TRACE=1 export GIT_CURL_VERBOSE=1
https://jackiechen.blog/2018/05/31/git-clone-the-remote-end-hung-up-unexpectedly/
git depth
% git clone --depth 100 http://www/XXX.git Cloning into 'XXX'... remote: Counting objects: 7421, done. remote: Compressing objects: 100% (5082/5082), done. fatal: the remote end hung up unexpectedly MiB | 1.50 MiB/s fatal: early EOF fatal: index-pack failed http% git clone --depth 10 http://www/XXX.git Cloning into 'XXX'... remote: Counting objects: 1461, done. remote: Compressing objects: 100% (1186/1186), done. remote: Total 1461 (delta 530), reused 729 (delta 227) Receiving objects: 100% (1461/1461), 84.18 MiB | 1.24 MiB/s, done. Resolving deltas: 100% (530/530), done. http% pwd /Users/cw/project http% cd XXX % pwd /Users/cw/project/XXX % git fetch --depth 10 origin feature/X-feature-branch remote: Counting objects: 13, done. remote: Compressing objects: 100% (9/9), done. remote: Total 13 (delta 7), reused 0 (delta 0) Unpacking objects: 100% (13/13), done. From http://www/XXX * branch feature/X-feature-branch -> FETCH_HEAD % git remote set-branches origin feature/X-feature-branch % git fetch --depth 10 origin feature/X-feature-branch remote: Counting objects: 13, done. remote: Compressing objects: 100% (9/9), done. remote: Total 13 (delta 7), reused 0 (delta 0) Unpacking objects: 100% (13/13), done. From http://www/XXX * branch feature/X-feature-branch -> FETCH_HEAD * [new branch] feature/X-feature-branch -> origin/feature/X-feature-branch