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

How to push to http(s) repository with authentication?

From
JWJosef Wolf <jw@raven.inka.de>
Date
Oct 20, 2008, 18:25 UTC
Message-ID
<20081020182502.GH9707@raven.wolf.lan>
Hello,
I have set up a repository as described in
  http://www.kernel.org/pub/software/scm/git/docs/howto/setup-git-server-over-http.txt

over SSL with basic authentication. DAV access works fine with konqueror, cadaver and and curl, using this .curlrc:

   $ cat ~/.curlrc
   --cacert /etc/cacerts/myca.pem
   --user   user
   $ curl https://repo.host.org/git/test/HEAD
   Enter host password for user 'user':
   ref: refs/heads/master
   $

But when called from git, this file seems to be ignored. I have checked google, but the only hint I could find was to put credentials into ~/.netrc. IMHO, this is a bad workaround, since this implies to have unencrypted passwords lying around on the disk.

Any hints?
PS: I have asked a similar question a couple of days ago.  Here is a link
    to my original mail with more information how I set up the server:
      http://marc.info/?l=git&m=122426078301793&w=2
Next: Josef Wolf
Message 1 of 4 in “How to push to http(s) repository with authentication?”
  1. Josef WolfOct 20, 2008
  2. Josef WolfOct 23, 2008
  3. Alex RiesenOct 23, 2008
  4. Josef WolfOct 23, 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.