通过官方指导链接可以看到,github最新修改了安全协议,不再支持git,需要用https进行请求。
https://github.blog/2021-09-01-improving-git-protocol-security-github/
解决方法:
git config --global url."https://github.com/".insteadof git@github.com:
// 或(根据使用远程包的原先的地址来替换)
git config --global url."https://github.com/".insteadof git://github.com/
两个都试一下,问题解决