开发者

Linking gitolite configurations to git projects

开发者 https://www.devze.com 2023-03-28 17:11 出处:网络
OK, so I have gitolite installed on a server. It automatically sets up test repos in ~/repositories. That is nice, but I want to manage repos at other places. My files are in /home/website1/www, /home

OK, so I have gitolite installed on a server. It automatically sets up test repos in ~/repositories. That is nice, but I want to manage repos at other places. My files are in /home/website1/www, /home/websites2/www/, etc. So I could theoretically go to /home/website1/www/ and run git init, but if I do so is there any way I can integrate them in gitolite? I do not grasp how to 'link' the two...

NOTE: this is a first install开发者_StackOverflow社区 of both git and gitolite, so I do have files on the server but do not yet have any version control system setup.


Gitolite only supports bare repositories on the server. I'm assuming you want to do this because you want to push to a website and have your site be updated?

If so, you could use a post-receive hook to copy your site to the directory you want. If this is not the case, let me know and I will delete this answer.

This looks like what you might want.

0

精彩评论

暂无评论...
验证码 换一张
取 消