gpt4 book ai didi

Git 克隆错误 “HTTP code 405 from proxy after CONNECT”

转载 作者:行者123 更新时间:2023-12-04 10:54:18 25 4
gpt4 key购买 nike

我在公司防火墙后面的办公室工作。我的系统是 Windows 10 Pro,我使用 Git Bash 设置了代理配置:

$ git config --global http.proxy http://corporateproxy.example.com:8080
$ git config --global https.proxy http://corporateproxy.example.com:8080

之后 .gitconfig文件看起来像:
[user] 
name = myname
[http]
http://corporateproxy.example.com:8080
[https]
http://corporateproxy.example.com:8080

我正在尝试使用 Git Bash 克隆一个存储库,如下所示:
$ git clone https://github.com/xxxxxx/xxxx.git  

但这会引发以下错误:
Cloning into 'xxxxxx'...
fatal: unable to access 'https://github.com/xxxxxx/xxxx.git/': Received HTTP code 405 from proxy after CONNECT

我试图在 Git 和控制台中取消设置并重新设置代理配置,但仍然出现相同的错误。

任何帮助,将不胜感激。

问候。

最佳答案

405 表示方法不允许错误

检查您的代理设置、端口,或者您可以尝试使用这样的 ssh 方法

ssh://git@xxxxx.xxx:7999/apps/xxxx.git

关于Git 克隆错误 “HTTP code 405 from proxy after CONNECT”,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59300649/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com