Free Hosting Online for WorkStations

< Previous | Contents | Next >

2.6. Managing gitolite users and repositories


Adding new users to gitolite is simple: just obtain their public SSH key and add it to the keydir directory as

$DESIRED_USER_NAME.pub. Note that the gitolite usernames don't have to match the system usernames

- they are only used in the gitolite configuration file to manage access control. Similarly, users are deleted by deleting their public key file. After each change, do not forget to commit the changes to git, and push the changes back to the server with


git commit -a

git push origin master


Repositories are managed by editing the conf/gitolite.conf file. The syntax is space separated, and simply specifies the list of repositories followed by some access rules. The following is a default example


repo gitolite-admin


RW+

=

admin

R

=

alice


repo project1

RW+ = alice

RW = bob

R = denise


Top OS Cloud Computing at OnWorks: