I have an Ubuntu server and have installed git and gitosis.
I am new to server administration and have the following gitosis folder tree: /home/git/repositories
I have edited the user's rights to different repositories by cloning gitosis-admin.git to my local machine, edited gitosis.conf
and added user's public keys to the keydir and pushed it back to the server. This has been tested with various repositories and works.
I am really confused by the tutorials that describe how gitosis can be used to create a repository that can be used to source-control a folder in the web domain.
I have created a bare repository in the web folder using SSH Putty; added and committed the files to it. Then cloned it to local machine with
git clone git(at)server:web_repo.git
This was successful.
The problem is that when I try to push it back to the server, a repo is created in the /home/git/repositories path and the web folder repo is not affected.
I have tried combining the info from:
http://scie.nti.st/2007/11/14/hosting-git-repositories-the-easy-and-secure-way
http://urbanpuddle.com/articles/2008/07/11/installing-git-on-a-server-ubuntu-or-debian
http://danielmiessler.com/blog/using-git-to-maintain-your-website