29
Aug
08

using GIT behind proxy

GIT is another software used for version control as SVN or CVS. Today when I was at gym Shreyank requested me to find out a possible solution for using GIT as he saw what I had posted earlier to use SVN and Pidgin. He was really very happy to see Pidgin working.

I came back then I thought I should give it a try too. I visited the LDTP site. There I saw a link for using git behind proxy. I dont know how it worked for me. I simply noticed that there was a simple change of protocols while using proxy, git:// was changed to http://.This is what I used to download the source of LDTP

$git clone http://anongit.freedesktop.org/git/ldtp/ldtp.git

I tried and bang! it was working for me. I had done only the usual proxy setting form yast, it sets up the http_proxy Environment variable. Check if it is set for you.

$echo $http_proxy

If the output is not “http;//10.0.0.1:3128″ then the proxy setting is not done for you. Do this

$export http_proxy=”http://10.0.0.1:3128″

It should work for you also.

Cheers :)


7 Responses to “using GIT behind proxy”


  1. September 25, 2008 at 4:39 am

    Thanks for the information. Your blog is added to your bookmarks. Develop.
    Your reader.

  2. 2 Karthik
    October 5, 2008 at 7:13 pm

    Your guide will not work in 2 cases

    a)If the repo has no webview enabled.. ie. NO HTTP
    b)If the proxy blocks the port used by git like ours does :)

  3. 3 Amit
    April 4, 2009 at 2:45 pm

    Thanks Roshan, exporting the env variable “http_proxy” worked for me :)

  4. 4 artou
    May 28, 2009 at 5:20 pm

    Thank you very much!

  5. 5 Anonymous
    September 16, 2009 at 8:42 pm

    Clearly as Karthik mentioned, your solution wouldn’t work if there is no web view of the repo through http protocol.

  6. September 17, 2009 at 9:43 am

    @Karthik was right ..

    i can use git here .. :(


Leave a Reply




Blog Stats

  • 19,703 hits

 

August 2008
M T W T F S S
« Jul   Sep »
 123
45678910
11121314151617
18192021222324
25262728293031

Cluster Map

Tweets

Google Groups
GNU/Linux Users' Group, NIT Durgapur
Visit this group

openSUSE