First you'll need to have a ssh key, if you don't have one generate it with
$ ssh-keygen
The defaults are fine for the test
Now install the server
$ sudo apt-get install git-core gitolite
After this a wizard will popup asking for:
- The git user, by default gitolite (the user that gets the code)
- The public ssh key for the admin, or the path to it, you can use the previously generated key located in ~/.ssh/id_rsa.pub if you left all the defaults
And that's it ... I couldn't believe it, last time took me one afternoon to install the server
Now to configure the repositories you need to clone the gitolite admin
$ git clone [user you selected on the first step of the wizard]@localhost:gitolite-admin
in my case
$ git clone gitolite@localhost:gitolite-admin
No comments:
Post a Comment