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

About the usage of core.gitproxy.

From
HZHongyi Zhao <hongyi.zhao@gmail.com>
Date
Jun 21, 2021, 21:58 UTC
Message-ID
<CAGP6POJErqxTf1=u=N0Fg28Fz+8t3Y8o1peiGP1nqEuttKgN2w@mail.gmail.com>
On Ubuntu 20.04, I noticed the following document for `core.gitProxy':
$ man git-config |egrep -A13 -i '^[ ]*core.gitproxy'
       core.gitProxy
           A "proxy command" to execute (as command host port) instead
of establishing direct connection to
           the remote server when using the Git protocol for fetching.
If the variable value is in the
           "COMMAND for DOMAIN" format, the command is applied only on
hostnames ending with the specified
           domain string. This variable may be set multiple times and
is matched in the given order; the
           first match wins.
           Can be overridden by the GIT_PROXY_COMMAND environment
variable (which always applies
           universally, without the special "for" handling).
           The special string none can be used as the proxy command to
specify that no proxy be used for a
           given domain pattern. This is useful for excluding servers
inside a firewall from proxy use,
           while defaulting to a common proxy for external domains.

For my case, I've a local socks5 proxy running on "127.0.0.1:18888", how should I set the above option so that the following command can pick up this proxy:

$ git clone git@github.com:torvalds/linux.git
Regards
-- 
Assoc. Prof. Hongyi Zhao <hongyi.zhao@gmail.com>
Theory and Simulation of Materials
Hebei Vocational University of Technology and Engineering
NO. 552 North Gangtie Road, Xingtai, China
Next: brian m. carlson
Message 1 of 2 in “About the usage of core.gitproxy.”
  1. Hongyi ZhaoJun 21, 2021
  2. brian m. carlsonJun 21, 2021

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.