通過官方指導鏈接可以看到代赁,github最新修改了安全協(xié)議,不再支持git,需要用https進行請求。
https://github.blog/2021-09-01-improving-git-protocol-security-github/
所以解決方式就是把git@github.com的請求都改為https://github.com
git config --global url."https://github.com/".insteadof git@github.com:
// 或(根據使用遠程包的原先的地址來替換)
git config --global url."https://github.com/".insteadof git://github.com/