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

Logo

瓜分20万奖金 获得内推名额 丰厚实物奖励 易参与易上手

更多推荐