GIT Proxies

From OMAPpedia

Jump to: navigation, search

GIT is a useful tool for SCM but can be a bit confusing to setup if you are unfamiliar with it.

[edit] proxies

First, set your proxies in your shell.

export http_proxy=http://<hostname>:<port>
export no_proxy=<domain>

Where <hostname> is the name of you proxy server and <domain> is your local domain which doesn't get proxied.

[edit] .gitconfig

If you are in a development environment where you have multiple git sites with some behind firewalls and others not, there is a way to edit your global .getconfig so that GIT will be able to access all of them.

Here's an example of such a .gitconfig


	name = <username>
	email = <email>
	gitproxy = none for <host_patterns>
	gitproxy = <proxy_command> for <host_patterns>


Where <host_patterns> could be "" or "" or your local domain in the case of none. This allows you to have local git repos and remote git repos work identically. If you need the proxy for everything but the local domain, use

	gitproxy = none for <localdomain>
	gitproxy = <proxy_command>
Personal tools