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

守給你的承諾、 提交于 2020-01-27 04:50:45

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

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

ssh-kyegen -t rsa -C "GitHub的用户名"
#当出现OverWrite的时候,输入y
#随后一直回车即可
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上找

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

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

即可

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!