githubforwindows

github for window 中 git shell 设置代理方法和解决ssl证书错误的问题

强颜欢笑 提交于 2020-04-10 11:00:35
因为国内特殊的网络环境,所以用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 accessinghttps://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" 这个问题可以解决了,但是遇到了另一个问题: D:\GitHub> git clone https://github.com/subying/jsbook.git Cloning