I work at a company and from home too using my laptop running Ubuntu Linux. The code is in a github repo. At company I access the network via a http proxy while at home there is no proxy. How to git push/pull in such cases? How to tell git to use proxy when at company and not to use proxy when at home?
This seems different than How to temporarily disable git http proxy, because in my case, I am accessing remote repo in both cases and not a local repo as in that question/answer.
My situation seems to be different than what is described in this question too git-proxy-bypass
What I want is to access my github repo in two ways:
I have to do this quite frequently.
You can either:
\Path\To\yourAccount\.gitconfig, which means two different settings depending on your workplace.HTTP(S)_PROXY and NO_PROXY environment variables accordingly.If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With