I am in the final phases of getting Git and Gitolite working. This is the current situation:

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The repositories under Gitolite management don’t have working copies. So what you have to do is create another repositories with working copies, commit the data and push them to the gitolite-managed ones. The easiest thing is to do that on the server directly. Therefore under each of the
wwwdirectories, do:Now you have the data in the repositories, which was the easy part. I am assuming the same user account has access to both gitolite repositories and the server data (as you said in chat), which makes the issue significantly easier.
Now the repositories don’t have alternates, so you have two copies of the data. To remove them, it’s probably easiest to for each site do:
(the
-soption to clone ensures the/home/X/www/.gitrepository won’t copy data from/home/gitolite/repositories/X.git). And finally you have to install a hook. It’s already explained in this question, but your situation is slightly easier. Since the data live on the same server and under the same user, you can simply install a post-update hook in all the gitolite repositories containing just:If you ever want to move the repositories and web server to separate servers (which I’d recommend, because the web server, if it’s facing out, should be in a “demilitarized zone”, while the git server is better off in your internal network behind another line of firewalls), you will of course need the ssh trigger thing described in that other question.