I used GoAgentX with SSLedge for proxy.
I added the following code to the oh-my-zsh configuration file to facilitate my use when I need to use a proxy for the terminal:
http_proxy='http://127.0.0.1:8016'
https_proxy='http://127.0.0.1:8016'
alias set_proxy="export http_proxy; export https_proxy"
When I use ruby, brew, curl and other tools, I am indeed using the proxy, but it does not work when using git.
What is the reason? Is there something wrong with my configuration? How do I need to modify it?
Thanks for the enlightenment.
大家讲道理2017-05-02 09:25:31
It depends on what protocol you use for git. If it is http/https, use the proxy. If it is ssh, leave it alone.
仅有的幸福2017-05-02 09:25:31
I have been researching this problem for a long time, and finally found a powerful tool, proxychains,