Gitolite is the system that hosts the central Git code repositories for the Web Application development group. This page documents how to work with the system.
Clone a repository
git clone firstname.lastname@example.org:namespace/repository_name.gitIf you get a password prompt like
email@example.com's password:it means that there was an error authenticating your SSH keys. You should not be prompted for a password for firstname.lastname@example.org.
Granting access to a new machine
On the remote machine:1. Create an SSH key if one doesn't exist:
2. Copy the
~/.ssh/id_rsa.pub contents (being sure to elimiate any new-lines).
On a gitolite admin's machine:3. Check-out the Gitolite configuration:
git clone email@example.com:gitolite-admin.git
4. Put the contents of the public key into a file in the
vim keydir/account/machine/account.pubwhere "account" is the person's AD username.
5. Add the username to the
conf/gitolite.conf file in either a readonly or writable group.
6. Commit the config changes and push them back to Gitolite:
git add . git commit -m "Added key for username's machinename." git push