国内譬如 Coding 、 OSC 直连
Github 使用 socks5 代理
git config --global http.proxy 'socks5://127.0.0.1:1080'
git config --global https.proxy 'socks5://127.0.0.1:1080'
如果使用这种方式的话就是全局代理了,有点拖累国内的速度。
国内譬如 Coding 、 OSC 直连
Github 使用 socks5 代理
git config --global http.proxy 'socks5://127.0.0.1:1080'
git config --global https.proxy 'socks5://127.0.0.1:1080'
如果使用这种方式的话就是全局代理了,有点拖累国内的速度。
|
sutraOct 12, 2016
1
[http "https://example.com/repo1.git"]
proxy = socks5://127.0.0.1:1080 [http "https://example.com/repo2.git"] proxy = http://user:pass@proxy2:8080 |
|
sutraOct 12, 2016
2
|
|
yoa1q7yOct 12, 2016
3
http_proxy=socks5://127.0.0.1:1080 https_proxy=socks5://127.0.0.1:1080 git push
|
|
4
|
|
5
@mikicomo 不是单个设置呀。是修改 ~/.gitconfig 文件。
我再补充一个例子:这是针对这整个域名下的,而不是某个具体的 repo [http "https://weak.example.com"] proxy = socks5://127.0.0.1:2080 |