If you’re using GitHub for Windows in a corporate, chances are high that you’re behind a big bad Corporate Firewall/Proxy. GitHub for Windows doesn’t yet have the proxy parameters in its GUI for setting Options.

To configure GitHub for Windows to use your  corporate proxy, edit the .gitconfig file typically found at C:\Users\<yourusername>\.gitconfig or C:\Documents & Settings\<yourusername>\.gitconfig

Close GitHub for Windows; In .gitconfig, just add

[http]
proxy = http://dumbproxy.yourcompany.com:8080

[https]
proxy = http://dumbproxy.yourcompany.com:8080

And speaking about dumb proxies, take a look at the category this proxy spews out as the reason for filtering it out 🙂

Proxy reason for filtering

By shashi

21 thoughts on “GitHub for Windows through proxies”
  1. great info. i need more details, what if i have to include my username and password? how it going to look like?

  2. Environment variables with plain text password works for me but this one is great.. Thanks! I just deleted the env variables 😉

  3. How do i get GitHub for windows installed in the fist place? The installer does not seem to pick up the proxy settings from this file.

  4. Did any one use github with windowsXP? We’ve got XP in our university. I tried adding:
    [http]
    proxy = http://dumbproxy.yourcompany.com:8080

    [https]
    proxy = http://dumbproxy.yourcompany.com:8080
    and this:
    [http]
    proxy = http://dumbproxy.yourcompany.com:8080

    [https]
    proxy = http://dumbproxy.yourcompany.com:8080
    (added a )
    but nothing worked. (of course, I replaced “dumbproxy.yourcompany.com” with our proxy server address and 8080 with the port number!)
    I keep getting the error “Unable to retrieve user info. A proxy server might be interfering.” Is there any thing it has got to do with the windows XP?
    I tried using proxifier.
    I tried enabling the system proxy settings without using proxifier(Since, proxifier won’t work with system proxy settings enabled.)
    What am I doing wrong?

    1. It worked well in Windows 8.1
      how to comment those lines? In case I need to use it after a long time, I may forget those lines if I delete them when I don’t use proxy. Can I use “//” to comment out those lines?

Leave a Reply to kaiye Cancel reply

Your email address will not be published. Required fields are marked *