如何让 git 通过代理和 IntelliJ Idea 工作? [英] How to get git to work through a proxy and IntelliJ Idea?

查看:28
本文介绍了如何让 git 通过代理和 IntelliJ Idea 工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在哪里可以在 IntelliJ Idea 中为 GIT 配置代理设置?我已经获得了适用于插件的代理设置,但我找不到适用于 GIT 的设置;并且帮助文件只提到了subversion.

Where to I configure the proxy settings for GIT in IntelliJ Idea? I've gotten the proxy settings working for the plugins, but I just can't find it for GIT; and the help files only mention subversion.

感谢任何帮助.

推荐答案

你必须为 git 而不是为 intelliJ 配置代理,intelliJ 只会调用 git 命令行.

You have to configure proxy for git and not for intelliJ, intelliJ will just call the git command line.

git config --global http.proxy yourProxy:port 应该这样做.

这篇关于如何让 git 通过代理和 IntelliJ Idea 工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆