我正在使用由我公司的内部云 (KVM) - RHEL 6.4 提供的虚拟机。
我能够从互联网上克隆外部存储库。然而,我不知道如何在我公司的内部网上克隆内部存储库。
起初我没有设置http_proxy
或https_proxy
并收到此错误:
error: The requested URL returned error: 401 Authorization Required while accessing http://....
设置 http_proxy
和 https_proxy
后,我现在在等待大约 60 秒后收到此错误:
error: The requested URL returned error: 504 Gateway Timeout while accessing http://...
我可以从我的笔记本电脑克隆这个 repo find,而不是 VM
关于我应该看哪里的任何想法?
谢谢。
最佳答案
在 .gitconfig 文件中使用它,然后这个问题就会解决。
- [http]
proxy = http://127.0.0.1:8087
sslVerify = false
或
git config --global http.proxy ''
关于Git 错误 : The requested URL returned error: 504 Gateway Timeout while accessing http://,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21085607/