致命:读取错误:由同行重置连接

Vij*_*y13 11 git terminal ubuntu github plasma

有人可以帮我摆脱以下几点:

vijay13@ubuntu:~$ git clone git://anongit.kde.org/plasma-mediacenter

Cloning into 'plasma-mediacenter'...

fatal: read error: Connection reset by peer
Run Code Online (Sandbox Code Playgroud)

vijay13@ubuntu:~$ git clone git@git.kde.org:plasma-mediacenter

Cloning into 'plasma-mediacenter'...

Read from socket failed: Connection reset by peer

fatal: The remote end hung up unexpectedly
Run Code Online (Sandbox Code Playgroud)

如何摆脱上述两个问题?

use*_*316 9

如果互联网连接也没问题,那就跑吧

git gc 
Run Code Online (Sandbox Code Playgroud)

然后再试一次.它清理不必要的文件并优化本地存储库.有关更多详细信息:git文档

  • 你能解释一下这是做什么以及为什么有效吗? (3认同)
  • “[gc] 在当前存储库中运行许多内务管理任务,例如压缩文件修订版(以减少磁盘空间并提高性能)并删除可能已从先前的 git add 调用中创建的无法访问的对象。” -https://git-scm.com/docs/git-gc (2认同)

Yav*_*ert 7

我也面临这个问题。

当我将“ git://”替换为“ https://”时,问题已解决

root@ubuntu:~# git clone git://github.com/osrg/ryu.git
Cloning into 'ryu'...
fatal: read error: Connection reset by peer

root@ubuntu:~# git clone https://github.com/osrg/ryu.git
Cloning into 'ryu'...
remote: Counting objects: 25613, done.
remote: Compressing objects: 100% (5/5), done.
Receiving objects:  37% (9609/25613), 18.68 MiB | 60.00 KiB/s
Run Code Online (Sandbox Code Playgroud)


小智 0

对于第一期

vijay13@ubuntu:~$ git clone git://anongit.kde.org/plasma-mediacenter

Cloning into 'plasma-mediacenter'...

fatal: read error: Connection reset by peer
Run Code Online (Sandbox Code Playgroud)

在这里,您尝试使用上述命令来检查代码。我什至遇到这个错误:尝试签出代码时,对等方重置了连接。

这是您的互联网连接问题。

检查您的互联网连接,然后重试。

它帮助了我。