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

Re: Setting http proxy and http password

From
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
Date
Nov 22, 2010, 22:50 UTC
Message-ID
<vpqeiadc6sb.fsf@bauges.imag.fr>
In-Reply-To
<o28rr7-5r4.ln1@homer.bruehl.pontohonk.de>
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/
Previous: Christoph BartoschekNext: Christoph Bartoschek
Message 2 of 3 in “Setting http proxy and http password”
  1. Christoph BartoschekNov 22, 2010
  2. Matthieu MoyNov 22, 2010
  3. Christoph BartoschekNov 22, 2010

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.