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

致命:无法连接到gitee.com

无论是pull 还是push 还是clone 都是这个错误 无法连接到码云 ping这个ip是可以ping通的

找到 .gitconfig 文件,把这几个配置删掉,就可以正常连接了

[url "git@github.com"]
insteadOf = https://github.com/:
[url "git://"]
insteadOf = https://
[url "https://"]
insteadOf = git://

这篇文章拯救了我 点击跳转

如果不知道 .gitconfig 文件在哪,可以在黑窗口输入下面的命令查看:

git config --list --show-origin

路径一般是在C盘:

C:/Users/Administrator/.gitconfig

查看 .gitconfig 文件截图

Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐