git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* About the usage of core.gitproxy.
@ 2021-06-21 21:58 Hongyi Zhao
  2021-06-21 23:33 ` brian m. carlson
  0 siblings, 1 reply; 2+ messages in thread
From: Hongyi Zhao @ 2021-06-21 21:58 UTC (permalink / raw)
  To: Git List

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-06-21 23:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-06-21 21:58 About the usage of core.gitproxy Hongyi Zhao
2021-06-21 23:33 ` brian m. carlson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).