HTTP basic authentication support
From: Kalle Valo <hidden>
Date: 2016-06-15 22:42:12
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