Use Git and GitHub behind a Proxy

Long time no see. Excuse us for this long brake. It’s because Robert moved to Switzerland while Antje moved to another city as well for her studying. There are still a lot thinks left to do but we hope that we could come back to post on a regular base soon.

 

If you are situated behind a Proxy you might get connection problems while using GitHub. That’s what the problems looked like for me:

clip_image001

The GitHub Client always stops at 9% before it quits complete:

clip_image001[5]

The same thing happens when you work with Git Bash:

image

Easy trick – Git Proxy Settings

Reason: Git doesn’t know my Proxy-address. At least he doesn’t know the Proxy in IE.

Solution

The GitHub support leaded me to this Blog who suggests this alternative:

Either you configure it like this:

Git config – global http.proxy http://proxyuser:proxypwd@proxy.server.com:8080

Or you safe it directly into .gitconfig (although the first alternative will be safe into .gitconfig as well)

[http]
proxy = http://proxyuser:proxypwd@proxy.server.com:8080

With this it works with the nice GitHub Client and with the Git Bash as well. If you use a Proxy without authentication: simply enter the adress.

If you enjoyed this post, please consider leaving a comment or subscribing to the RSS feed to have future articles delivered to your feed reader.

About the author

Written by Code Inside Team

Learn more about our team.

Comment on this post

Recent Posts

  • image1825-439x194_thumb.png
    Change the WebDeploy Port or why do I need port 8172?

      If you use WebDeploy on a server operation system you would usually use Port 8172. But what is this Port for and can I change it? Hint: For installing the WebDeploy I recommend this Blogpost. Port 8172 = IIS Management Service Default Port The Port 8172 is the default port of the IIS Management ...

  • Windows Phone Fonts & what if Visual Studio lies

    Today I was confronted with a little Problem: my Windows Phone App refused to show me the Font I choose – also other thinks didn’t work. Although the Visual Studio Designer did show the Fonts: Unfortunately there isn’t much left in the Emulator: Reason for this: Windows Phone doesn’t include all the typos Windows does ...

  • Json-Online-Tools: Viewer & Json2Csharp generator

      Wherever APIs are mentioned the JSON format I not far away. Since I’m using two tools regularly I would like to introduce you to them. JSON Viewer If you only see the JSON-Text you are usually not able to see the structure. With the help of JSON Viewer you can have an easy overview: ...

  • Windows Phone SDK & „System“-Icons

      Although the Metro Design focuses a lot on Typography Icons are still quite important. If you install Windows Phone SDK you will receive 36 Icons. You can find them here: C:\Program Files (x86)\Microsoft SDKs\Windows Phone\v8.0\Icons Unfortunately many Icons you might know from the common applications are not integrated. Pedro Lamas extracted 99 additional Icons ...

  • image1830-570x194.png
    How can I figure out if my ADFS 2.0 works?

      I was working with ADFS 2.0 (“Active Directory Federation Services”) for a while when this simple question crossed my mind: How can I figure out if the connection between ADFS and AD “works”? Here is a simple test… What is ADFS? If you need some “position of trusts” beneath the AD-boarders you choose an ...

Support us