在拷贝github上仓库代码的时候,出现报错:error: RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54。详细报错信息以下:git
~ git clone https://github.com/qiwsir/DjangoPracticeProject.git Cloning into 'DjangoPracticeProject'... remote: Enumerating objects: 3, done. remote: Counting objects: 100% (3/3), done. remote: Compressing objects: 100% (3/3), done. error: RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54 fatal: the remote end hung up unexpectedly fatal: early EOF fatal: index-pack failed
必须改成 ssh 方式来拉取代码,也就是必须使用公私钥的方式进行帐号验证。github
▶ git clone git@github.com:qiwsir/DjangoPracticeProject.git Cloning into 'DjangoPracticeProject'... Warning: Permanently added the RSA host key for IP address '52.74.223.119' to the list of known hosts. remote: Enumerating objects: 3, done. remote: Counting objects: 100% (3/3), done. remote: Compressing objects: 100% (3/3), done. remote: Total 3574 (delta 0), reused 1 (delta 0), pack-reused 3571 Receiving objects: 100% (3574/3574), 41.61 MiB | 31.00 KiB/s, done. Resolving deltas: 100% (1800/1800), done.