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:
- From behind company proxy
- From my home network without proxy
I have to do this quite frequently.