git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Fetch via http and proxy which requires authentication

From
PCPaolo Ciarrocchi <paolo.ciarrocchi@gmail.com>
Date
Nov 4, 2008, 11:13 UTC
Message-ID
<4d8e3fd30811040313x44290557yecfedb2fbc8cad0b@mail.gmail.com>
In-Reply-To
<c94f8e120811030602p57007278p5a2c48ce7663282d@mail.gmail.com>
On Mon, Nov 3, 2008 at 3:02 PM, Dilip M <dilipm79@gmail.com> wrote:
Show 26 quoted lines
> On Thu, Aug 28, 2008 at 3:43 PM, Paolo Ciarrocchi
> <paolo.ciarrocchi@gmail.com> wrote:
>>> Hi all,
>>> i'm looking for a way to use git behind a corporate proxy which
>>> requires authentication.
>>> i just need to be able to fetch/pull via http.
>>> i'm using git on a win xp box.
>>> Any hint?
>>
>> Yes, google for  http_proxy ;-)
>>
>> export http_proxy=http://host:port
>> git clone http://username:password@giturl
>
> I tried setting, export http_proxy=http://<user>:<password>@host:port
>
> But git clone failed!
>
> $git clone http://kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git git
> clone http://kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
> Initialized empty Git repository in /home/dilipm/bin/linux-2.6/.git/
> fatal:
> http://kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git/info/refs
> download error - The requested file was not found
>
> What may the problem?  How can debug....

Works for me: $ git version git version 1.6.0.2.1172.ga5ed0

I set in the Environment Variables panel:

Variable Value http_proxy http://ip_of_my_proxy

Regards,
-- 
Paolo
http://paolo.ciarrocchi.googlepages.com/
Previous: Dilip MNext: Dilip M
Message 4 of 5 in “Fetch via http and proxy which requires authentication”
  1. Paolo CiarrocchiAug 28, 2008
  2. Paolo CiarrocchiAug 28, 2008
  3. Dilip MNov 3, 2008
  4. Paolo CiarrocchiNov 4, 2008
  5. Dilip MNov 6, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.