Windows shell中走代理

最近用clash跑stable-diffusion,发现git不走代理,间而出现各种问题,故记录一下。

假如只针对GitHub:

git config --global http.https://github.com.proxy http://127.0.0.1:XXXX
git config --global https.https://github.com.proxy https://127.0.0.1:XXXX

假如使用sock5

git config --global http.https://github.com.proxy socks5://127.0.0.1:XXXX
git config --global https.https://github.com.proxy socks5://127.0.0.1:XXXX

取消上面代理

git config --global --unset http.https://github.com.proxy
git config --global --unset https.https://github.com.proxy

假如对git的所有域名都代理就下面

git config --global http.proxy 'http://127.0.0.1:XXXX'
git config --global https.proxy 'http://127.0.0.1:XXXX'

但是问题依然,里面的程序野不走代理,那么直接上有米进程代理,让cmd进程走代理。

 

posted @   zenghansen  阅读(92)  评论(1编辑  收藏  举报
相关博文:
阅读排行:
· 分享一个免费、快速、无限量使用的满血 DeepSeek R1 模型,支持深度思考和联网搜索!
· 25岁的心里话
· 基于 Docker 搭建 FRP 内网穿透开源项目(很简单哒)
· 闲置电脑爆改个人服务器(超详细) #公网映射 #Vmware虚拟网络编辑器
· ollama系列01:轻松3步本地部署deepseek,普通电脑可用
点击右上角即可分享
微信分享提示