I've set up a number of private repos where I commit via SSH but I'm having problems setting up a public one. Here's what I've done so far:
Log into my server via ssh
$ cd public_html/repos/ $ mkdir test $ cd test $ git --bare init $ touch git-daemon-export-ok # tell GIT it's ok to export this project $ chmod 777 -R ../test #making sure the directory had full read write execute permissions $ exit # exit out of ssh $ mkdir test_porject $ cd test_project $ touch README.txt $ git init #Initialized empty Git repository in ~/test_porject $ git add . $ git commit -m "initial commit" $ git remote add origin http://repos.mydomain.com/test $ git push origin master
this is the error I get: error: The requested URL returned error: 500 while accessing http://repos.mydomain.com/test/info/refs fatal: HTTP request failed
Huh???? Not sure why this isn't working. If you go to http://repos.mydomain.com/ I don't get any errors. Any help would be much appreciated.