无论是pull 还是push 还是clone 都是这个错误 无法连接到码云
在window/User/user找到 .gitconfig 文件,把这几个配置删掉,就可以正常连接了
[url "git@github.com"]
insteadOf = https://github.com/:
[url "git://"]
insteadOf = https://
[url "https://"]
insteadOf = git://
如果不知道 .gitconfig 文件在哪,可以在命令行输入下面的命令查看:git config --list --show-origin
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
‘这个报错也可以用以上方法~~~暂时不知道什么原因导致的’。所以好神奇