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 2023-08-25 14:55  zxddesk  阅读(170)  评论(0编辑  收藏  举报

导航