git更新本地分支ssh报错port 22: Connection timed out的一种解决方法
(认知有限,如有不妥,还望告知,欢迎讨论)
问题产生背景
在对许久未更新的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