我在代理服务器后工作,无法访问github.com。我读到cntlm可以解决这个问题。我仍然在努力填写代理信息。
所以我的问题是,如何让Git使用cntlm绕过代理?
发布于 2012-11-05 18:49:31
对于git版本1.7.10和更高版本,您不需要CNTLM,因为这是您的情况。
有关详细信息,请参阅此处的我的答案https://stackoverflow.com/a/10848870/352672,您可以这样配置/测试:
git config --global http.proxy http://user:password@proxy.com:port
git clone http://git.gnome.org/browse/gnome-contacts发布于 2012-11-05 18:55:05
如果你真的想要使用CNTLM,可以像常规代理一样将它配置为git。
因此,您可以按如下方式指定NTLM代理:
git config --global https.proxy https://user:password@proxy.com:port
git config --global http.proxy http://user:password@proxy.com:port对于CNTLM,您只需使用localhost指定CNTLM监听的端口:
git config --global https.proxy https://127.0.0.1:port
git config --global http.proxy http://127.0.0.1:port我让它在本地端口3128上运行,所以对我来说它是
git config --global https.proxy https://127.0.0.1:3128
git config --global http.proxy http://127.0.0.1:3128即使git支持NTLM代理,您也可能不希望以这种方式使用它,因为它以明文形式存储您的用户/通过。有了CNTLM,您就有可能使用一个集中的位置,其中password can be stored as encrypted。
https://stackoverflow.com/questions/13230420
复制相似问题