- Setup for a Hosted Remote Server
You need SSH Access to the Server.
ssh -p yourSSHAPort yourUserName@yourDomain
mv hooks/post-update.sample hooks/post-update
chmod a+x hooks/post-update
Latest you need to make Git Aware of the New Setup by:
You are Done!
This is enough to activate the Public Http Access on Git Repository.
- Setup on Localhost
Evidently your skip SSH Access :)
After you completed all others Step as in Remote
You need to Set an Appropriate Repository Group by:
chgrp -R www-data path/To/yourProject.git/..
And Restart Apache
Now everybody should be able to Clone your Repo over Http running:
git clone http://yourDomain/path/To/yourProject.git