GitServer

Aus Info-Theke
Zur Navigation springen Zur Suche springen


Initialisierung

adduser --shell /usr/bin/git-shell git
cd /home/git
mkdir .ssh
cd .ssh
touch authorized_keys
chown -R git.git /home/git

Leeres Repository einrichten:

mkdir /home/git/repo
chown git.git /home/git/repo

PROJ=example
DIR=/home/git/repo/$PROJ.git
mkdir $DIR
cd $DIR
git --bare init
chown -R git.git $DIR

Zugriff

  • git clone git@git.f-r-e-i.de:/home/git/repo/example