Report an error in the github clone code:
git version: git version 2.15.0
I searched on the Internet, and it was mostly due to network reasons.
Found a plan: Original link: https://stackoverflow.com/questions/21277806/fatal-early-eof-fatal-index-pack-failed
My first step still failed, so this solution was useless for me. Since it might be a network problem, I wondered if I could use a proxy:
git config --global socks.proxy 'socks5://localhost:1080'
Proxy server configuration, you can see: How to bypass company network restrictions, listen to songs, watch movies (you don’t need to see the browser configuration part, just buy an Alibaba Cloud ECS server in Hong Kong for simple configuration, I use mac directly ssh- D is OK)
The clone was successful.
Cancel proxy
git config --global --unset socks.proxy