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
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.

Github through proxy

  • 22-02-2014 08:41PM
    #1
    Registered Users, Registered Users 2 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