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

Re: How to provide authentication along with git command itself ?

From
Carlos Martín Nieto <cmn@elego.de>
Date
Jul 14, 2011, 11:12 UTC
Message-ID
<1310641975.6041.3.camel@centaur.lab.cmartin.tk>
In-Reply-To
<20110714162953.36347b76@shiva.selfip.org>

On Thu, 2011-07-14 at 16:29 +0530, J. Bakshi wrote: [...]

Show 6 quoted lines
> 
> Thanks for the response. Can I use the same .netrc to store different
> authentication for different repo ? Is it somehow possible to store
> the information at the concerned .git of the repo ? I think this will
> be easier for multiple repos.
> 

I'm not sure, but netrc is not specific for any particular protocol. It assumes that your login and password are the same for several services on the same computer or set of computers.

It's often less hassle (and more efficient wrt. data transfer) to use SSH. With gitolite you can give people access to git repositories over SSH without giving them SSH access to the machine proper.

Cheers,
   cmn
Previous: J. BakshiNext: Jon Seymour
Message 4 of 7 in “How to provide authentication along with git command itself ?”
  1. J. BakshiJul 14, 2011
  2. Carlos Martín NietoJul 14, 2011
  3. J. BakshiJul 14, 2011
  4. Carlos Martín NietoJul 14, 2011
  5. Jon SeymourJul 14, 2011
  6. J. BakshiJul 14, 2011
  7. Jonathan NiederJul 14, 2011

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.