M a t s u r i   n o d e

克隆Gitee代码报错Unable to connect to gitee.com: gitee.com[0: 180.97.125.228]: errno=Unknown error


克隆Gitee代码报错:

Unable to connect to gitee.com: gitee.com[0: 180.97.125.228]: errno=Unknown error 

将 .gitconfig 文件中的相关配置项删除。

1.查找 .gitconfig 文件所在位置

git config --list --show-origin 

找到文件位置为:C:/Users/ddz/.gitconfig

2.删除 .gitconfig 文件相关配置项

C:/Users/ddz/.gitconfig 文件内容如下:

[credential "http://192.168.1.15"] 	provider = generic [credential "https://gitee.com"] 	provider = generic [user] 	name = ddz 	email = 12345678@qq.com [url "git://"] 	insteadOf = https:// [url "https://"] 	insteadOf = git:// 

将以下配置项删除:

[url "git://"] 	insteadOf = https:// [url "https://"] 	insteadOf = git://