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

Re: Using socks proxy with git for http(s) transport

From
Jeff King <peff@peff.net>
Date
Mar 6, 2013, 08:21 UTC
Message-ID
<20130306082110.GA31638@sigill.intra.peff.net>
In-Reply-To
<CABmRxH1g2BR+-MvGZ4J-2vC8NDq3x8pG148hXfuYTpUkX0L=0A@mail.gmail.com>
On Wed, Mar 06, 2013 at 09:12:30AM +0100, Yves Blusseau wrote:
> i have a socks proxy to access internet.
> I successed in configuring git (with GIT_PROXY_COMMAND) to use the
> socks proxy for GIT transport protocol.
> But how to use this socks proxy with git for HTTP(S) transport protocol ?
Try:
  git config --global http.proxy 'socks://yourhost:port'

That will enable it for all git repositories on your machine. Git should also respect any environment variables that curl handles (because we use libcurl under the hood), if you prefer to set it up that way. See "man curl" for details.

-Peff
Previous: Yves BlusseauNext: Yves Blusseau
Message 2 of 8 in “Using socks proxy with git for http(s) transport”
  1. Yves BlusseauMar 6, 2013
  2. Jeff KingMar 6, 2013
  3. Yves BlusseauMar 6, 2013
  4. Jeff KingMar 6, 2013
  5. Yves BlusseauMar 6, 2013
  6. Daniel StenbergMar 6, 2013
  7. Yves BlusseauMar 6, 2013
  8. ciorapalb100Jun 15, 2013

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.