欢迎光临散文网 会员登陆 & 注册

git更新本地分支ssh报错port 22: Connection timed out的一种解决方法

2023-03-28 11:32 作者:LogByMax  | 我要投稿

(认知有限,如有不妥,还望告知,欢迎讨论)

问题产生背景

在对许久未更新的repo master执行 git pull --rebase origin master时出现报错:

解决方法:

step1:执行

step2:将remote origin部分的

url = git@github.com:username/repo.git一行改为:url = https://github.com/username/repo.git

step3:再次执行git pull --rebase origin master可成功


=END=

=Reference=

[1] https://blog.csdn.net/weixin_41287260/article/details/124368189

git更新本地分支ssh报错port 22: Connection timed out的一种解决方法的评论 (共 条)

分享到微博请遵守国家法律