How can I symbolize a gitosis repo link to another location?

I have actual code in a public directory under one user. He is in/home/user1/public_html/dev

And for Gitoz I had to install another Git user and Gitoz wants it repositioned to "/home/git/repositories/"

So from what I read, the best and easiest is to just bind them to a symbol. But which dir, which one?

When I create a new "test" project locally, I have a .git subdirectory under the "test" folder, but when clicked on " /home/git/repositories/

", it creates a test.git folder on the remote server with the contents of a local .git folder, but I can't see actual files?

So, I'm a little confused as to how this works and what should I link. Please pay attention to my first time with Git, gitosis and all, so I'm probably asking something completely stupid, but I'm actually locked out.

+3


source to share


1 answer


gitosis (which has been deprecated for several years: gitolite is much richer ) works with bare repos: repos without a working tree.

And /home/user1/public_html/dev

- this is a repo with a working tree.

So you don't link with each other (sym). Not directly.



You can (for example) set up a post-receive hook (on a bare repo) to go to a non-bare repo and pull: see " Gitosis post - get a hook to deploy a repository receiving public key errors ".
You have a more complete hook script in this blog post .

But the point is, both repo's are independent, and an action on one (pushing a bare repo) will affect the other via a hook.

0


source







All Articles