11.6 Configuring Gitosis

Now you need to clone Gitosis’s configuration repository. It contains all the configuration values you need to manage your new repositories. You must clone it from the computer where you generated the SSH public key. That’s the only one that Gitosis knows about right now.

If your server’s domain name was example.com, your clone command would look something like this:

 
​prompt> git clone git@example.com:gitosis-admin.git
 
​Initialized empty Git repository in /work/gitosis-admin/.git/​
 
​remote: Counting objects: 5, done.​
 
​remote: Compressing objects: 100% (4/4), done.​
 
​remote: Total 5 (delta 1), reused 5 (delta 1)​
 
​Receiving objects: 100% (5/5), done.​ ...

Get Pragmatic Version Control Using Git now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.