Git Behind Corporate Proxy

corporate security

corporate security

A thread at Stack Overflow explains how to configure git behind a corporate proxy:

git config --global http.proxy http://login:password@our-proxy-server:8088

It’s important to note that if your login has a backslash, as in domain\login, the you must escape the backslash, as in:

git config --global http.proxy http://domain\\\login:password@our-proxy-server:8088

Note the use of three blackslashes.


About jmjpro

Software Development Manager java, networking, xml
This entry was posted in Uncategorized and tagged . Bookmark the permalink.

3 Responses to Git Behind Corporate Proxy

  1. paul says:

    That’s a great point, thanks. What’s the right syntax if your password has @ in it? I tried escaping it with a \ as well as double \, but that was not successful.

  2. jmjpro says:

    Two suggestions:
    1) Change your password
    2) Use Cntlm. I recently became a fan of Cntlm for two reasons: a) I don’t like storing my password in clear text, especially in mutiple places, which I have to do now for all the different applications on my machine that need to access my corporate proxy; b) some simple applications aren’t don’t even have built-in support for proxy authentication. I generated an encrypted version of my password once for Cntlm to connect to my corporate proxy, and now I just point all my apps to my local Cntlm proxy and they don’t need to worry about proxy authentication.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s