git for windows配置全局代理的小坑

在github上下载PDM时,直接复制到clone or download的地址,然后使用
git clone https://github.com/persepolisdm/persepolis.git
命令去下载,速度很慢
使用vmWare内的win7开ultrasurf(推荐,虚拟机内勿装国产软件,成功率更高),开了某界分享,然后再配置
git config --global https.proxy http://192.168.1.2:1234
结果发现配置无效
后来换用http代理就好了,https的地址用的http协议?为什么会这样
git config --global http.proxy http://192.168.1.2:1234

使用完后,需要记得取消代理:
git config --global --unset http.proxy

发布了25 篇原创文章 · 获赞 22 · 访问量 9340

猜你喜欢

转载自blog.csdn.net/qq_27884799/article/details/86671580