当前位置:   article > 正文

Git笔记-Connection reset by 13.229.188.59 port 22 fatal: Could not read from remote repository._connection reset by 180.76.198.77 port 22 fatal: c

connection reset by 180.76.198.77 port 22 fatal: could not read from remote

这个问题发送在突然的某一天,我使用git push上传不了自己的代码到仓库了如下图所示:

这里用如下的方式解决这个问题:

  1. ssh-kyegen -t rsa -C "GitHub的用户名"
  2. #当出现OverWrite的时候,输入y
  3. #随后一直回车即可
  4. git remote add origin https://github.com/在GitHub上找

如果出现fatal: remote origin already exits.

就使用

git remote rm origin

然后再重复上面的

git remote add origin https://github.com/在GitHub上找

然后就可以了,照着以前的思路来:

  1. git add .
  2. git commit -m "XXXXXX"
  3. git push -u origin master

即可

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/你好赵伟/article/detail/819361
推荐阅读
相关标签
  

闽ICP备14008679号