git设置上游分支以及解决Connection reset by IP port 22 fatal: Could not read from remote repository.

git设置上游分支以及解决Connection reset by IP port 22 fatal: Could not read from remote repository

git设置上游分支

git branch --set-upstream-to=origin/master master

解决Connection reset by IP port 22 fatal: Could not read from remote repository

重新生成ssh key

ssh-keygen -t rsa -C "youremail@xx.com"

使用http连接

上述方法没用的话,可以使用http连接试试

posted @ 2022-01-14 16:39  wonder32  阅读(1747)  评论(0)    收藏  举报