Skip to content
Snippets Groups Projects
git.md 5.42 KiB

!meta title="Git"

Git research and development.

Barebones shared git repositories

No gitolite, gitosis, gitlab or whatever involded. Only OpenSSH and git is needed.

Basic config

If needed, create a host instance for your git server at your ~/.ssh/config:

Host git.project.org gitserver
  HostName git.project.org

Now make sure you can log into the server using key-based auth.

Server config

sudo apt install git
sudo adduser git --home /var/git
sudo mkdir              /var/git/repositories
sudo chown git.         /var/git/repositories
sudo chmod 775          /var/git/repositories
sudo usermod -a -G git `whoami` # add yourself into the git group