git clone报错解决,failed to connect

2023-06-24  本文已影响0人  水他

报错:

git clone https://github.com/danswer-ai/danswer.git
Cloning into 'danswer'...
fatal: unable to access 'https://github.com/danswer-ai/danswer.git/': Failed to connect to github.com port 443: Operation timed out

配置代理解决
本地有代理proxy,所以配置本地代理

git config --global http.proxy http://127.0.0.1:10080
git config --global https.proxy https://127.0.0.1:10080

之后重新git clone已经ok

git clone https://github.com/danswer-ai/danswer.git
Cloning into 'danswer'...
remote: Enumerating objects: 2215, done.
remote: Counting objects: 100% (699/699), done.
remote: Compressing objects: 100% (272/272), done.
Receiving objects:  73% (1617/2215), 1.81 MiB | 44.00 KiB/s
上一篇 下一篇

猜你喜欢

热点阅读