原因:
Cloning into ‘all-MiniLM-L6-v2’…
fatal: unable to access ‘https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2/’: Failed to connect to huggingface.co port 443 after 21306 ms: Couldn’t connect to server
设置 HTTP/HTTPS 代理
git config --global --add http.proxy localhost:10808
git config --global --add http.sslVerify false
git config --global --add https.proxy localhost:10808
git config --global --add https.sslVerify false
设置 socks5 代理
git config --global --add http.proxy socks5://localhost:10808
git config --global --add http.sslVerify false
git config --global --add https.proxy socks5://localhost:10808
git config --global --add https.sslVerify false
取消代理设置
git config --global --unset http.proxy
git config --global --unset http.sslVerify
git config --global --unset https.proxy
git config --global --unset https.sslVerify
常见问题
warning: http.proxy has multiple values
error: cannot overwrite multiple values with a single value
如果你曾设置过代理,便会在再设置代理时遭遇此错误。使用 --unset-all 替代 --unset 即可解决。
git config --global --unset-all http.proxy
git config --global --unset-all https.proxy