When using idea for Git cloning, I encountered the following problems:
early EOF
The remote end hung up unexpectedly index-pack failed RPC failed;
curl 18 transfer closed
There are many online queries, some say that https:// is replaced by git:// in front of the git url address , some say it is a network problem, and some say it is a problem with the address of the git warehouse.
Finally, after experimenting, it was found that it was a problem with the git configuration item.
Solution:
Find the folder directory where you want to clone the git code, right click to open git bash here
Run this command:
git config --add core.compression -1