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

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

From
JBJ. Bakshi <joydeep@infoservices.in>
Date
Jul 14, 2011, 11:01 UTC
Message-ID
<20110714163149.63bad937@shiva.selfip.org>
In-Reply-To
<CAH3AnrqR=xMa6KYWBmybXdudo8C8FoeioCs2PgOVZezAE5BWiw@mail.gmail.com>

On Thu, 14 Jul 2011 20:53:42 +1000 Jon Seymour <jon.seymour@gmail.com> wrote:

Show 15 quoted lines
> On Thu, Jul 14, 2011 at 8:45 PM, J. Bakshi <joydeep@infoservices.in> wrote:
> > Hello list,
> >
> > During git push or fetch over http , I need to provide username and password every time, as protected by apache htpasswd file. How can I provide the same along with git command ? Or something so that It save the authentication info somewhere within .git
> >
> > Thanks
> 
> You probably want to create the client setup section of this:
> 
>     http://kernel.org/pub/software/scm/git/docs/howto/setup-git-server-over-http.txt
> 
> Personally, I prefer to use an ssh hosted repository in such cases,
> then use an ssh-agent to cache an SSH private key.
> 
> jon.
Well, I am using version 1.7, hence not DAV but using git-http-backend 
Previous: Jon SeymourNext: Jonathan Nieder
Message 6 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.