Swift Package Manager 加载包慢或者报错的问

2024-01-25  本文已影响0人  张_何
配置git的ssh DL
Host github.com
   HostName github.com
   User git
   # 走 HTTP DL
   # ProxyCommand socat - PROXY:127.0.0.1:%h:%p,proxyport=8080
   # 走 socks5 DL(如 Shadowsocks)
   ProxyCommand nc -v -x 127.0.0.1:你自己DL的端口号 %h %p
配置git的http或https的DL
[http]
    proxy = http://127.0.0.1:DL端口号
[https]
    proxy = http://127.0.0.1:DL端口号
git config --global http.proxy "http://127.0.0.1:DL端口号"
git config --global https.proxy "http://127.0.0.1:DL端口号"


上一篇 下一篇

猜你喜欢

热点阅读