Abstract
This post offers a tip on how to use git with a http proxy
I noticed a mail in the Chinese Google Summer of Code mail list today, which askes how to use git-http-fetch when a http proxy have to be used to access the git host. I don't believe there is any way to do so with GIT, but I don't think this should be a tough problem either. Remember git is only a common program, though it does many magic>. So it should work with http proxy just as other programs do.
Remember how we access the internet with a proxy in bash? All we have to do is to set the http_proxy environment variable.In bash we simply do:
export http_proxy=”http://<proxy-server-ip>:<port>”
Or you may:
http_proxy=”http://<proxy-server-ip>:<port>” git http-fetch <your-params>
And be aware that the name of the environment variable is in lower case.
No comments:
Post a Comment