如何查看git客户端的应用程序日志

时间:2014-02-11 10:42:30

标签: git

我已在我的系统上设置了基于cntlm的代理。我已经指出git通过在我的.gitconfig文件中添加以下内容来使用此代理。

[http]
       proxy = http://:@localhost:3128

但是,当我从命令行运行git clone时,它会向我显示此错误 -

error: Failed connect to github.com:443; Connection timed out while accessing

我已经使用firefox测试了代理,但它确实有效。

如何找到有关git失败原因的更多信息?我在哪里可以看到git客户端的日志。

1 个答案:

答案 0 :(得分:0)

您可以尝试不使用':'的语法,并将其设置为http和https,如" How to point Git to use cntlm"

中所示
git config --global https.proxy http://localhost:3128
git config --global http.proxy http://localhost:3128

您还可以运行cntlm.exe -v查看发生了什么 以及在执行GIT_TRACE=2之前设置git clone

相关问题