github for windows中git shell设置代理

字号+ 编辑: 种花家 修订: 德玛西亚 来源: 开源中国 2023-09-12 我要说两句(0)

github for windows的一大堆事:国内网络访问不了怎么办?使用git shell出现Unknown SSL protocol error in connection 如何解决呢?

因为国内特殊的网络环境,所以用github for windows,在使用git shell的clone命令是会出现这样的情况

git clone https://code.google.com/p/android-os-monitor.osmonitor/
Cloning into android-os-monitor.osmonitor...
error: Unknown SSL protocol error in connection to code.google.com:443 while accessing https://code.google.com/p/android-os-monitor.osmonitor/info/refs

那么解决这个问题的办法就是用代理方式去访问了,这里的解决方法中用的是goagent,是在使用goagent的前提下才能执行下面的操作。

打开goagent软件,会看到 listen Address:127.0.0.1:8087,那么在git shell中执行的命令就是:

git config --global http.proxy "127.0.0.1:8087"
阅完此文,您的感想如何?
  • 有用

    1

  • 没用

    0

  • 开心

    0

  • 愤怒

    0

  • 可怜

    0

1.如文章侵犯了您的版权,请发邮件通知本站,该文章将在24小时内删除;
2.本站标注原创的文章,转发时烦请注明来源;
3.交流群: PHP+JS聊天群

相关课文
  • 解决每次开机或者重启电脑USB驱动异常

  • Git解决SSL证书错误

我要说说
网上宾友点评