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

HTTP basic authentication support

From
KVKalle Valo <kalle.valo@iki.fi>
Date
Nov 20, 2005, 08:38 UTC
Message-ID
<87u0e71zpx.fsf@litku.valo.iki.fi>

I keep some personal files in a git repository. Now I want to have the repository in an HTTP server so that I can access it everywhere I go. Since I don't want to share the repository with the whole world, I would like to use the HTTP basic authentication, just to give a little protection. But it seems that git doesn't support it, yet. Or did I miss something?

I made a test repository which requires basic authentication. Login is foo and password bar.

git clone doesn't work:

$ git clone http://foo:bar@www.valo.iki.fi/kalle/tmp/auth.git/ auth defaulting to local storage area Cannot get remote repository information. Perhaps git-update-server-info needs to be run there? $

But curl works:

$ curl http://foo:bar@www.valo.iki.fi/kalle/tmp/auth.git/info/refs 4cb663bd2b92d57c5e1ba0bfa9bf65c2e50ff46a refs/heads/master $

I'm using git updated an hour ago.
-- 
Kalle Valo
Next: Kalle Valo
Message 1 of 8 in “HTTP basic authentication support”
  1. Kalle ValoNov 20, 2005
  2. Support username and password inside URLKalle Valo, Nov 20, 2005
  3. Junio C HamanoNov 20, 2005
  4. Krzysztof HalasaNov 20, 2005
  5. Kalle ValoNov 23, 2005
  6. Junio C HamanoNov 24, 2005
  7. Johannes SchindelinNov 24, 2005
  8. Junio C HamanoNov 24, 2005

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.