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

win10环境下拉Azure仓库报错Couldn't connect to server的一种解决方法

2023-04-14 13:49 作者:LogByMax  | 我要投稿

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

问题背景

之前在虚拟机里能成功拉下的仓库,在windows的power shell用git clone https:XXXX拉Azure DevOps的仓库时报错Couldn't connect to server。


解决方法

step1. 将虚拟机里的.ssh文件夹的全部文件都拷贝至windows对应的.ssh下。

step2.执行git config --global --edit,将config文件中的http和https的配置删除(只删除这两项,其他的保留)

step3.重新拉仓库git clone https:XXXX

=END=

=Reference=

[1] https://zhuanlan.zhihu.com/p/390874935

win10环境下拉Azure仓库报错Couldn't connect to server的一种解决方法的评论 (共 条)

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