Manage gitosis over CLI- and Web-Interface.
Download the composer.phar executable or use the installer.
$ curl -s http://getcomposer.org/installer | php
Install dependencies over composer.
$ php ./composer.phar install
Create config.yaml file from config.yaml.dist file.
Add path to your gitosis config (Cloned gitosis-admin repository):
locale: en
security:
authentification:
enabled: false
gitosis:
root_directory: /path/to/gitosis-admin
ssh_user: git
ssh_host: myhost
$ bin/n98-gitosis-admin repo:list
$ bin/n98-gitosis-admin repo:add name [owner] [description] [gitweb] [daemon]
Example:
$ bin/n98-gitosis-admin repo:add my-repo "John Doe" "My awesome git repository" no no
$ bin/n98-gitosis-admin repo:remove name
$ bin/n98-gitosis-admin group:list
$ bin/n98-gitosis-admin group:add name members [writable] [readonly]
Example:
# Adds the repo "foo" with members "bar, zoz and bla" with write access to "repo1" and read access to "repo2"
$ bin/n98-gitosis-admin group:add foo bar,zoz,bla repo1 repo2
$ bin/n98-gitosis-admin group:remove name
$ bin/n98-gitosis-admin group:user:add group username
$ bin/n98-gitosis-admin group:user:remove group username
$ bin/n98-gitosis-admin user:remove username
Lists all users across all groups.
$ bin/n98-gitosis-admin user:list
$ bin/n98-gitosis-admin group:repo:add:writable
$ bin/n98-gitosis-admin group:repo:add:readonly
- Manage Repositories, Groups and Users
See Screenshots of the web interface on my flickr account:
http://www.flickr.com/photos/muench-worms/sets/72157631918064315/
- Clone gitosis-admin repository on your local machine.
- Make sure that webserver user has a valid ssh key which is assigned to gitosis-admin repository.
On Debian Systems with Apache User:
$ mkdir /var/www/.ssh
$ chown -R www-data:nobody /var/www/.ssh
$ sudo -u www-data ssh-keygen -t rsa
- At least PHP 5.3
- Composer
- GIT Client
- Auth Layer with LDAP support
- More Translations