{"thread":{"id":"25812","subject":"Setting http proxy and http password","startedAt":"2010-11-22T22:39:52Z","lastAt":"2010-11-22T23:32:08Z","messageCount":3,"participants":["Christoph Bartoschek","Matthieu Moy"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"156338","messageId":"o28rr7-5r4.ln1@homer.bruehl.pontohonk.de","threadId":"25812","inReplyTo":null,"subject":"Setting http proxy and http password","fromName":"Christoph Bartoschek","fromEmail":"bartoschek@gmx.de","sentAt":"2010-11-22T22:39:52Z","receivedAt":"2010-11-22T22:39:52Z","isPatch":false,"sender":{"key":"bartoschek@gmx.de","avatar":null},"body":"Hi,\n\nI have two questions on the git http backend.\n\n1. How can I set the proxy that should be used for git commands? For \nexternals pages I have a proxy. But for our git server no proxy should be \nused. How can I configure git to never use the proxy?\n\n2. How can I have git remember the username and password for our git server?\n\nChristoph\n"},{"id":"156339","messageId":"vpqeiadc6sb.fsf@bauges.imag.fr","threadId":"25812","inReplyTo":"o28rr7-5r4.ln1@homer.bruehl.pontohonk.de","subject":"Re: Setting http proxy and http password","fromName":"Matthieu Moy","fromEmail":"matthieu.moy@grenoble-inp.fr","sentAt":"2010-11-22T22:50:12Z","receivedAt":"2010-11-22T22:50:12Z","isPatch":false,"sender":{"key":"matthieu.moy@grenoble-inp.fr","avatar":"https://gravatar.com/avatar/72c8a2705971a25dfaff23cece15130d405685845d911aedd5667ace277f3fc5?d=mp&s=160"},"body":"Christoph Bartoschek <bartoschek@gmx.de> writes:\n\n> 1. How can I set the proxy that should be used for git commands? For \n> externals pages I have a proxy. But for our git server no proxy should be \n> used. How can I configure git to never use the proxy?\n\nSearch for proxy here:\n\nhttp://www.kernel.org/pub/software/scm/git/docs/git-config.html\n\nbut I think the more or less standard $http_proxy environment variable\ndoes the trick.\n\n> 2. How can I have git remember the username and password for our git server?\n\nEither use ~/.netrc (see\nhttp://www.kernel.org/pub/software/scm/git/docs/howto/setup-git-server-over-http.txt ),\nor set the URL of the remote repo to\nhttp(s)://user:password@server.com/path in .git/config (after\nrestricting read permissions on this file appropriately, of course).\n\n-- \nMatthieu Moy\nhttp://www-verimag.imag.fr/~moy/\n"},{"id":"156341","messageId":"p4brr7-t56.ln1@homer.bruehl.pontohonk.de","threadId":"25812","inReplyTo":"vpqeiadc6sb.fsf@bauges.imag.fr","subject":"Re: Setting http proxy and http password","fromName":"Christoph Bartoschek","fromEmail":"bartoschek@gmx.de","sentAt":"2010-11-22T23:32:08Z","receivedAt":"2010-11-22T23:32:08Z","isPatch":false,"sender":{"key":"bartoschek@gmx.de","avatar":null},"body":"Matthieu Moy wrote:\n\n> Christoph Bartoschek <bartoschek@gmx.de> writes:\n> \n>> 1. How can I set the proxy that should be used for git commands? For\n>> externals pages I have a proxy. But for our git server no proxy should be\n>> used. How can I configure git to never use the proxy?\n> \n> Search for proxy here:\n> \n> http://www.kernel.org/pub/software/scm/git/docs/git-config.html\n> \n> but I think the more or less standard $http_proxy environment variable\n> does the trick.\n> \n>> 2. How can I have git remember the username and password for our git\n>> server?\n> \n> Either use ~/.netrc (see\n> http://www.kernel.org/pub/software/scm/git/docs/howto/setup-git-server-\nover-http.txt\n> ), or set the URL of the remote repo to\n> http(s)://user:password@server.com/path in .git/config (after\n> restricting read permissions on this file appropriately, of course).\n> \n\nThanks for the reply. \n\nFor the first problem I now use the environment variable no_proxy. Adding \nhttp_proxy=\"\" in front of each git command that communicates with the depot \nis a little bit tedious.\n\nFor the second problem I now use the .netrc file.\n\nChristoph\n"}]}