Friday, July 5, 2013

In China mainland, you never know for what reason a website gets blocked by the fucking GFW. Even if the site has nothing to do with politics. github is a example, many developers in China are victims. This post is about how to access github via a proxy, such as goagent.
The git pull/push command can be instructed to access remote server via proxy by setting https_proxy environment variable. So, we can run commands below use proxy.

https_proxy=http://127.0.0.1:8087 git pull

or

export https_proxy=http://127.0.0.1:8087
git push

But we may get below error because the goagent ssl certificate can't be verified.