* Setting http proxy and http password
@ 2010-11-22 22:39 Christoph Bartoschek
2010-11-22 22:50 ` Matthieu Moy
0 siblings, 1 reply; 3+ messages in thread
From: Christoph Bartoschek @ 2010-11-22 22:39 UTC (permalink / raw)
To: git
Hi,
I have two questions on the git http backend.
1. How can I set the proxy that should be used for git commands? For
externals pages I have a proxy. But for our git server no proxy should be
used. How can I configure git to never use the proxy?
2. How can I have git remember the username and password for our git server?
Christoph
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Setting http proxy and http password
2010-11-22 22:39 Setting http proxy and http password Christoph Bartoschek
@ 2010-11-22 22:50 ` Matthieu Moy
2010-11-22 23:32 ` Christoph Bartoschek
0 siblings, 1 reply; 3+ messages in thread
From: Matthieu Moy @ 2010-11-22 22:50 UTC (permalink / raw)
To: Christoph Bartoschek; +Cc: git
Christoph Bartoschek <bartoschek@gmx.de> writes:
> 1. How can I set the proxy that should be used for git commands? For
> externals pages I have a proxy. But for our git server no proxy should be
> used. How can I configure git to never use the proxy?
Search for proxy here:
http://www.kernel.org/pub/software/scm/git/docs/git-config.html
but I think the more or less standard $http_proxy environment variable
does the trick.
> 2. How can I have git remember the username and password for our git server?
Either use ~/.netrc (see
http://www.kernel.org/pub/software/scm/git/docs/howto/setup-git-server-over-http.txt ),
or set the URL of the remote repo to
http(s)://user:password@server.com/path in .git/config (after
restricting read permissions on this file appropriately, of course).
--
Matthieu Moy
http://www-verimag.imag.fr/~moy/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Setting http proxy and http password
2010-11-22 22:50 ` Matthieu Moy
@ 2010-11-22 23:32 ` Christoph Bartoschek
0 siblings, 0 replies; 3+ messages in thread
From: Christoph Bartoschek @ 2010-11-22 23:32 UTC (permalink / raw)
To: git
Matthieu Moy wrote:
> Christoph Bartoschek <bartoschek@gmx.de> writes:
>
>> 1. How can I set the proxy that should be used for git commands? For
>> externals pages I have a proxy. But for our git server no proxy should be
>> used. How can I configure git to never use the proxy?
>
> Search for proxy here:
>
> http://www.kernel.org/pub/software/scm/git/docs/git-config.html
>
> but I think the more or less standard $http_proxy environment variable
> does the trick.
>
>> 2. How can I have git remember the username and password for our git
>> server?
>
> Either use ~/.netrc (see
> http://www.kernel.org/pub/software/scm/git/docs/howto/setup-git-server-
over-http.txt
> ), or set the URL of the remote repo to
> http(s)://user:password@server.com/path in .git/config (after
> restricting read permissions on this file appropriately, of course).
>
Thanks for the reply.
For the first problem I now use the environment variable no_proxy. Adding
http_proxy="" in front of each git command that communicates with the depot
is a little bit tedious.
For the second problem I now use the .netrc file.
Christoph
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-11-22 23:33 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-22 22:39 Setting http proxy and http password Christoph Bartoschek
2010-11-22 22:50 ` Matthieu Moy
2010-11-22 23:32 ` Christoph Bartoschek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox