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

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

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

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

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

更多推荐

unable to access https://github.com/....解决方法