git clone 报错 error: RPC failed; curl 56 GnuTLS recv error (-54): Error in the pull function.fatal: fetch-pack: invalid index-pack output
一、问题如图:
拉取一个公共git代码仓库,报错如上,尝试了apt install gnutls-bin,无效。
二、问题解决:
git clone --depth 1改为git clone --depth=1,再次拉取正常了。
三、资料链接:
https://stackoverflow.com/questions/38378914/how-to-fix-git-error-rpc-failed-curl-56-gnutls