Back

git - 使用sock5s 代理下载 github的内容 git proxy socks5

发布时间: 2021-03-30 23:55:00

参考: https://stackoverflow.com/questions/15227130/using-a-socks-proxy-with-git-for-the-http-transport

#[http]
# proxy = https://127.0.0.1:1080
#[https]
# proxy = https://127.0.0.1:1080
#

改成下面这个就可以了。(仍然提示输入用户名和密码)

[http "https://github.com"]
    proxy = socks5h://192.168.0.10:1090
[https "https://github.com"]
    proxy = socks5h://192.168.0.10:1090

Back