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:
$ scp .ssh/id_dsa.pub ubuntu@git.example.com:/tmp
Next I install gitolite on git.example.com, with admin privileges.
$ sudo git clone https://github.com/sitaramc/gitolite.git $ cd gitolite $ sudo src/gl-system-install $ sudo adduser git
Next I become the git user, and I set up gitosis with my public key.
$ gl-setup /tmp/stivlo.pub
As the user stivlo, on my local laptop, I clone gitolite-admin repository.
$ git clone git@git.obliquid.com:gitolite-admin
Now I create some repositories, by editing gitolite-admin/conf/gitolite.com: I delete the testing repo and add another repository:
repo stivlo/myproject
RW+ = stivlo
$ git commit conf/gitolite.com $ git push
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
Recent Comments