我正在尝试通过代理使用 Git。我已经尝试通过多种方式设置参数“git config --global”,但在克隆存储库时总是没有成功。
我做到了:
git config --global http.proxy http://DOMAIN\\\username:password@10.0.2.42:8080
git config --global http.sslverify false
git clone http://github.com/project/project.git
我得到了:
$ git clone http://github.com/project/project.git folder
Cloning into 'folder'...
error: The requested URL returned error: 407 while accessing http://github.com/project/project.git/info/refs
fatal: HTTP request failed
那么,我该如何调试它或在 Git 中启用日志记录以发现为什么我仍然收到 407 错误? Git 中是否有一些参数可以详细显示正在发生的事情以捕获错误发生的正确位置?
最佳答案
我在尝试从 Windows 中的 Git Bash 客户端 git push
时遇到了类似的问题。
我只是通过使用 Chrome 浏览器浏览该网站来修复它。
然后我回到 Git Bash,它马上就可以工作了
为清楚起见,我的 GIT 存储库 URL 看起来像 http://me@me.git.cloudforge.com/myproject.git
然后我浏览到 http://www.cloudforge.com
我的理解是它强制代理解析这个域。
关于Git 通过代理。克隆时出现 407 错误的原因是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8561671/