克隆Gitee代码报错:
Unable to connect to gitee.com: gitee.com[0: 180.97.125.228]: errno=Unknown error
将 .gitconfig 文件中的相关配置项删除。
git config --list --show-origin
找到文件位置为:C:/Users/ddz/.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://