From Development Wiki

Gitosis HowTo

Git is a distributed source control system.
Git by itself does not provide means to restrict the access to a source repository.
Gitosis adds fine-grained access control to the git system.

New Git User

You can add a git user on Schorsch by

git clone ssh://

A new public ssh key is generated with the ssh-keygen tool on the console. The generated key is stored in ~/.ssh/ This key file goes into the keydir under a new file name, for example (needs to end with .pub). A good choice for the new file name is the user name shown at the end of the public key file. An even better choice for the key file name is the valid email address of the respective git user.

Then the name of the file (with the .pub suffix) is said to be the user key name.

Gitosis Groups

Each Gitosis group can have read & write access rights for a list of specific git repositories.

Adding a new group is done by editing gitosis.conf.

For example the entry

[group gitosis-admin]
writable = gitosis-admin
members = mhopf@g165 roettger@Lilinoe.local

means that the group “gitosis-admin” has write access to the git repository “gitosis-admin.git” and the members of the group are the users identified by the user key names “mhopf@g165″ and “roettger@Lilinoe.local”.

Git Access

A git user is given access to a git repository

Create a new repository

A new repository needs to be created first:

Then you can check out the new repo:

 git clone ssh://


Git repositories to be accessable in the web frontend cgit are listed in


Retrieved from

Page last modified on November 02, 2012, at 09:43 AM