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

Re: do without .netrc

From
JMJürgen Mangler <juergen.mangler@univie.ac.at>
Date
Aug 6, 2008, 11:28 UTC
Message-ID
<48998AC7.20204@univie.ac.at>
In-Reply-To
<20080806085025.GU32057@genesis.frugalware.org>
Miklos Vajna wrote:
Show 6 quoted lines
> On Wed, Aug 06, 2008 at 01:00:54AM +0200, Jürgen Mangler <juergen.mangler@univie.ac.at> wrote:
>> it is working without a:b@ part, but ~/.netrc instead
>>
>> :-(, is it possible without .netrc
> 
> I thought questions have question marks. ;-)

Explanation 1: I wrote it to IRC and then thought maybe crossposting to the list would be no bad idea. On IRC i was not using question marks, mail was just copying the lines, forgot to add question marks.

Explanation 2: its not questions but accusations! *fg*
> Anyway, what is the advantage of not using a ~/.netrc?

It's mentioned on several occations that it is not necessary (e.g. http://www.kernel.org/pub/software/scm/git/docs/howto/setup-git-server-over-http.txt)

The advantages for me would be:

a) I have multiple different passwords on the same server for different directories, it's not possible to put this to a netrc (AS FAR AS I KNOW). So i have to edit the netrc for every push, clone, ... -> very inconvenient b) secondly (maybe not a super valid argument for you): netrc is not considered to be the most secure thing, isn't it? Our network is invaded every year "tested" by thousands of computer science students, so i always try to have as few plain-text passwords as possible lying around (one never knows - yes netrc has 0600).

i'd also prefer not to use the user:pass@server schema, but to be asked, to not show pass in the history and config file in .git although even user:pass@server would be an advantage because it solves a).

Jürgen
Previous: Miklos VajnaNext: Jürgen Mangler
Message 5 of 6 in “do without .netrc”
  1. Jürgen ManglerAug 5, 2008
  2. Miklos VajnaAug 6, 2008
  3. Michael J GruberAug 6, 2008
  4. Miklos VajnaAug 6, 2008
  5. Jürgen ManglerAug 6, 2008
  6. Jürgen ManglerAug 8, 2008

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.