Git Clone设置代理
【代码】Git Clone设置代理。
·
一次性设置
#socket5
git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git --config http.proxy="socks5://127.0.0.1:10808"
全局替换
#http代理
git config --global http.proxy http://127.0.0.1:10808
#socket5
git config --global http.proxy socks5://127.0.0.1:10808
未验证
# 一次性代理
git clone -c http.proxy="http://127.0.0.1:1087" https://github.com/
# 全局设置代理
git config --global http.https://github.com.proxy socks5://127.0.0.1:1086
更多推荐
已为社区贡献1条内容
所有评论(0)