1

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 of both git and gitolite, so I do have files on the server but do not yet have any version control system setup.

user852091
  • 2,820
  • 5
  • 18
  • 21

1 Answers1

2

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.

Community
  • 1
  • 1
Andy
  • 38,684
  • 13
  • 64
  • 66