get git clone work behind proxy

git config --global http.proxy http://proxyuser:proxypwd@proxy.server.com:8080

If you are using cntlm, it would be
git config --global http.proxy localhost:3128

3128 is the port you specify cntlm is using
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s