git - How to set up proxy for Mac terminal
PHPz
PHPz 2017-05-02 09:23:31
0
2
719

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.

PHPz
PHPz

学习是最好的投资!

reply all(2)
大家讲道理

It depends on what protocol you use for git. If it is http/https, use the proxy. If it is ssh, leave it alone.

仅有的幸福

I have been researching this problem for a long time, and finally found a powerful tool, proxychains,

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template