Can't make IntelliJ ignore proxy settings for git commands
Answered
I work behind a proxy and recently we migrated our project to git. The repo url changed so that we don't need to use proxy anymore, so I just want to ignore proxy settings for this specific repo URL with IntelliJ, but I can't manage to do so. I've set the no proxy settings without success, the same configuration syntax that I use in my bash_rc and allow me to pull from command line without problem.
What is weird is that when I test the "check connection" in HTTP proxy configuration panel, I get a 401 code reponse, whereas doing a git pull brings me to a 503 error (means it tries anyway to go through proxy).
Am I missing something with git proxy configuration ?
Thanks by advance for your help,
Please sign in to leave a comment.
Notice that git repo url is HTTPS, and requires credentials, I can't see where to set them in IntelliJ. My local gitconfig has the credentials set up correctly and I can just git pull / push from command line without problem.
IntelliJ IDEA uses command line git, so it should behave the same as in Terminal. Note that bash_rc settings may not propagate to IntelliJ IDEA because there is so called interactive and noninteractive login environment that is configured in completely different locations on Linux. Possibly related: https://youtrack.jetbrains.com/issue/IDEA-146037.
See also http://bencane.com/2013/09/16/understanding-a-little-more-about-etcprofile-and-etcbashrc/.
IDE proxy settings are not used for git: https://youtrack.jetbrains.com/issue/IDEA-102844#comment=27-456971.
Thank you Serge,
Indeed I use ConEmu shell on Windows, so there is small chances that its configuration propagates to IntelliJ.
I figured out I had a global proxy configuration in my Windows env variable, so I removed it and it worked !
Would be nice if git intelliJ used IntelliJ proxy configuration to avoid strange situation, in my case I just removed the HTTP_PROXY env variable but some other users may not be able to do this.