September 23, 2010

Using GIT Behind Proxy

GIT uses GIT protocol. So if you need to clone any source, you need to do the following:

1. varsha@varsha-laptop:~$ git clone git://

2. If the above works fine for you, then you don't have to do anything else. Otherwise, if you get the following error, then proceed to Step 3.[0:]: errno=Connection timed out
fatal: unable to connect a socket (Connection timed out)

3. Check if you have set up your system proxy.

varsha@varsha-laptop:~$ echo $http_proxy

4. If not, set the proxy.

export http_proxy="<address:port>"

5. Try cloning from GIT again, but this time use http:// instead of git://.

varsha@varsha-laptop:~$ git clone


  1. Thanks varsha, your post solve the problem of installing gnome shell for me. :)

  2. Hey i tried the above method. I got the following error

    fatal: not found: did you run git update-server-info on the server?

    I ran git update-server-info on my project directory. Didn't work. Google did not Help me. Any Idea?