git config --global url."https://".insteadOf git://

可以把 git:// 替换成 https:// 方便使用 https 协议

相反的,如果想要将https 替换成 git,比如我们平时下载不到github的东西,提示 unable to access https://github.com/.......的时候就可以用

git config --global url."git://".insteadOf https://

这个方法来解决,意思就是将用git://替换https://

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐