git更新本地分支ssh報錯port 22: Connection timed out的一種解決方法
(認(rèn)知有限,如有不妥,還望告知,歡迎討論)
問題產(chǎn)生背景
在對許久未更新的repo master執(zhí)行 git pull --rebase origin master時出現(xiàn)報錯:
解決方法:
step1:執(zhí)行
step2:將remote origin部分的
url = git@github.com:username/repo.git一行改為:url = https://github.com/username/repo.git
step3:再次執(zhí)行g(shù)it pull --rebase origin master可成功
=END=
=Reference=
[1] https://blog.csdn.net/weixin_41287260/article/details/124368189