以goagent的代理设置为例吧
- export http_proxy="http://127.0.0.1:8087"
- export https_proxy="http://127.0.0.1:8087"
这样子git bash的http和https访问都会走代理了,但是可能会涉及到https证书错误的问题,出现错误提示SSL certificate problem: unable to get local issuer certificate
- git config --global http.sslVerify false