====== Installation de Git ====== Source : http://en.gentoo-wiki.com/wiki/Git ===== Installation ===== * emerge git ===== Configuration du serveur ===== Dans le fichier ''/etc/conf.d/git-deamon'' modifier la ligne suivante : GITDAEMON_OPTS="--syslog --export-all --base-path=/var/git /var/git" Démarrage : ''/etc/init.d/git-daemon start'' Pour l'ajouter en démarrage automatique : ''rc-update add git-daemon default'' ===== Création d'un dépôt ===== Passez en utilisateur 'nobody' : ''sudo -u nobody -s'' En créez un dépôt : $ cd /var/git $ mkdir myproject $ git init Initialized empty Git repository in /var/git/myproject/.git/ ===== chekout du projet ===== Essayer maintenant de récupérer le projet : git clone git://localhost/myproject myproject