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

Re: Can't get git clone over https with proxy and invalid certificate...

From
Shawn O. Pearce <spearce@spearce.org>
Date
Aug 8, 2008, 14:28 UTC
Message-ID
<20080808142819.GJ28749@spearce.org>
In-Reply-To
<c475e2e60808080448x40683db1wadcd834e94d7d263@mail.gmail.com>
Giovanni Funchal <gafunchal@gmail.com> wrote:
Show 6 quoted lines
> Ok, so I have created the following ~/.curlrc:
>    netrc
>    proxytunnel
>    insecure
>    proxy = http://proxyserver.com:8080
>    proxy-user = proxyuser:proxypassword
...
> $ git clone https://remoteuser@remoteserver.com/.git/
> Initialized empty Git repository in /home/user/.git/
> error: Proxy requires authorization!
> warning: remote HEAD refers to nonexistent ref, unable to checkout.

Last time I used Git with an HTTP proxy that required authentication I was doing it with an environment variable:

  http_proxy=http://me:pass@proxyserver.com:8080 git clone ...

Fortunately this was on a Windows desktop where I was the only user who was logged into the system, so leaking my password into my environment for a short duration was about the same risk as putting into a ~/. file.

-- 
Shawn.
Previous: Giovanni FunchalNext: Giovanni Funchal
Message 2 of 3 in “Can't get git clone over https with proxy and invalid certificate...”
  1. Giovanni FunchalAug 8, 2008
  2. Shawn O. PearceAug 8, 2008
  3. Giovanni FunchalAug 8, 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.