stable-diffusion 插件安装掉线, 使用X加吧ray为git加速

D:\Soft_D\GreenProgram\AITools\stable\stable-diffusion-webui-1.5.2\extensions>netstat -ano | find "x休闲ray的进程PID" //找到占用的端口号
TCP 127.0.0.1:10808 0.0.0.0:0 LISTENING 14984
TCP 127.0.0.1:10809 0.0.0.0:0 LISTENING 14984

D:\Soft_D\GreenProgram\AITools\stable\stable-diffusion-webui-1.5.2\extensions>git config --global http.proxy socks5://127.0.0.1:10808

D:\Soft_D\GreenProgram\AITools\stable\stable-diffusion-webui-1.5.2\extensions>git config --global https.proxy socks5://127.0.0.1:10808

D:\Soft_D\GreenProgram\AITools\stable\stable-diffusion-webui-1.5.2\extensions>git clone https://github.com/IDEA-Research/DWPose.git
Cloning into 'DWPose'...
remote: Enumerating objects: 3315, done.
remote: Counting objects: 100% (140/140), done.
remote: Compressing objects: 100% (97/97), done.

 

参考指令

 

# socks5协议,1080端口修改成自己的本地代理端口
git config –global http.proxy socks5://127.0.0.1:1080
git config –global https.proxy socks5://127.0.0.1:1080
# http协议,1081端口修改成自己的本地代理端口
git config –global http.proxy http://127.0.0.1:1081
git config –global https.proxy https://127.0.0.1:1081

如果只是加速GITHUB , 其他保持不变。 设置如下:

 

# http协议
git config –global http.https://github.com.proxy https://127.0.0.1:1081
git config –global https.https://github.com.proxy https://127.0.0.1:1081
# socks5协议,1080端口修改成自己的本地代理端口
git config –global http.https://github.com.proxy socks5://127.0.0.1:1080
git config –global https.https://github.com.proxy socks5://127.0.0.1:1080

其他相关命令

 

查看所有配置
git config -l
reset 代理设置
git config –global –unset http.proxy
git config –global –unset https.proxy

posted on   zxddesk  阅读(175)  评论(0编辑  收藏  举报

相关博文:
阅读排行:
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 记一次.NET内存居高不下排查解决与启示
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
· DeepSeek 开源周回顾「GitHub 热点速览」

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示