Ubuntu install and tips

This project is maintained by nicolas-brousse

← Go home

Gitolite installation

$ apt-get install git-core

With root user:

$ adduser \
    --system \
    --shell /bin/sh \
    --gecos 'git version control' \
    --group \
    --disabled-password \
    --home /var/git \
    git

Switch to git user:

$ su - git

Get gitolite from github:

$ git clone git://github.com/sitaramc/gitolite
$ cd /var/git
$ mkdir bin
$ gitolite/install -ln

vi /var/git/.bashrc

export PATH=$PATH:$HOME/bin

source .bashrc

$ gitolite setup -pk yourPubKey.pub

sources:


← Go home