Installing gitolite on a server

After experimenting on github.com, experimenting with my local laptop, it’s time to go live and install gitolite on one of my servers. First I copy my public key to the future git server:

[sourcecode language=”bash”]
$ scp .ssh/id_dsa.pub ubuntu@git.example.com:/tmp
[/sourcecode]

Next I install gitolite on git.example.com, with admin privileges.

[sourcecode language=”bash”]
$ sudo git clone https://github.com/sitaramc/gitolite.git
$ cd gitolite
$ sudo src/gl-system-install
$ sudo adduser git
[/sourcecode]

Next I become the git user, and I set up gitosis with my public key.

[sourcecode language=”bash”]
$ gl-setup /tmp/stivlo.pub
[/sourcecode]

As the user stivlo, on my local laptop, I clone gitolite-admin repository.

[sourcecode language=”bash”]
$ git clone git@git.obliquid.com:gitolite-admin
[/sourcecode]

Now I create some repositories, by editing gitolite-admin/conf/gitolite.com: I delete the testing repo and add another repository:

[sourcecode]
repo stivlo/myproject
RW+ = stivlo
[/sourcecode]

[sourcecode language=”bash”]
$ git commit conf/gitolite.com
$ git push
[/sourcecode]

Note the files of testing repository are still in git repositories folder, and I can delete them from the server with rm -rf testing.git

Leave a Reply

  

  

  

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">