Git push on localhost with htaccess
- by Rooneyl
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?