我正在尝试使用代理克隆一个存储库。
我已经配置了 git:
git config --global https.proxy http:\\proxyuser:proxypass@proxy.name.edu.co:8080
但是当我输入时:
git clone https://bitbucket.org/petsc/petsc petsc
它显示了下一个错误:
Cloning into 'pflotran-dev'... fatal: unable to access 'https://bitbucket.org/pflotran/pflotran-dev/': Received HTTP code 302 from proxy after CONNECT
我觉得我做得很好。我不知道发生了什么。 感谢您的帮助。
最佳答案
可能是语法错误:
- 带有\的代理将无法工作:
http:\\proxyuser...
- 使用//的代理应该可以工作:
http://proxyuser...
所以尝试:
git config --global http.proxy http://proxyuser:proxypass@proxy.name.edu.co:8080
git config --global https.proxy http://proxyuser:proxypass@proxy.name.edu.co:8080
关于git - 在克隆 bitbucket 存储库时连接后从代理接收到 HTTP 代码 302,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25343328/