Git push on localhost with htaccess

Posted by Rooneyl on Super User See other posts from Super User or by Rooneyl
Published on 2012-06-28T14:29:06Z Indexed on 2012/06/28 15:18 UTC
Read the original article Hit count: 160

Filed under:
|
|
|

I am looking into setting up a remote git repo. To start with I have created it on my Windows machine using xampp following this guide.

All works fine except when I try to add some security, as per step 6 of the guide (for when I migrate it to my main web server). I have added passwords by using passwd and adding htaccess to the htdocs folder. This works fine (I have checked in my web browser), but when I try and push I get prompted for my password the it fails with a error (code 22).

$ git push origin master
Password for 'http://git@localhost':
error: Cannot access URL http://git@localhost/s.git/, return code 22
fatal: git-http-push failed

Any ideas?

© Super User or respective owner

Related posts about Windows

Related posts about apache