本文基于 https://www.cnblogs.com/dabaomo/p/9634727.html 声明 坚决拥护党的领导,本文章所用技术乃出于工作需要,敬请谅解。 正文 可以先过去快速浏览一遍再
声明
正文
Failed to connect to 127.0.0.1 port 1080: Connection refused
补充
vTworay更好用
socks5原理
代理扩展用法
- If you do not want to set the proxy as global config,try ALL_PROXY= e.g.:
ALL_PROXY=socks5://127.0.0.1:xx git clone https://github.com/some/one.git
- (Just a little reminder) If you want the hostname also be resolved by the proxy (that means passing everything through the proxy),especially when you are cloning a gist,you can use the following setting (the key is that it uses socks5h instead of socks5):
git config --global http.proxy socks5h://127.0.0.1:xx