Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Github through proxy

Options
  • 22-02-2014 8:41pm
    #1
    Registered Users Posts: 891 ✭✭✭


    I regularly use different machines at home and at work. Mostly when at work I use a company laptop and in order to clone/push/pull using github I have to go through a proxy. Without using the proxy I can't access github. I modified some global configs following something like this;

    [HTML]git config --global user.name "Name Lastname"
    git config --global user.email "your.mail@example.com"
    git config --global http.proxy "http.proxy=http://proxy-xx.xxx.com:911"
    git config --global https.proxy "http.proxy=http://proxy-xx.xxx.com:911"
    git config --global url.https://.insteadof git://
    [/HTML]

    After making these changes, I can't push anything without connecting to the job through a VPN again (because I've set it for access through the proxy).

    Is there a way that I can quickly switch back and forth between using the proxy or not without having to reconfigure globals each time, so that I don't have to go through the VPN?

    Anyone have any tips or tricks on using proxies with github? It's not the end of the world to log into the VPN but if I could avoid it, that would be so much better!


Comments

Advertisement