Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/valentindebon/git-host

Dedicated git server infrastructre
https://github.com/valentindebon/git-host

bloat-free git self-hosted ssh

Last synced: about 1 month ago
JSON representation

Dedicated git server infrastructre

Awesome Lists containing this project

README

        

# Git Host

Simplify git server management.

Git host is an infrastructure of configurations and binary executables around sshd(8) meant to integrate
the server's system users with the git(1) user usually used to handle repositories.

## Simplify system administration

Git's [guide on setting up a server](https://git-scm.com/book/en/v2/Git-on-the-Server-Setting-Up-the-Server) demonstrates how to manually create a git user to setup remote repositories.
With this default configuration, adding a new user and checking up if he/she doesn't mess with other's repositories might be a tedious and time-consuming process.

Git host simplifies the process by just letting you add a system user to a dedicated group (the `git` group).

## Configure, build and install

Download and extract a source release tarball.
You may need to tweak `--with-git-exec-path` for git-host to correctly finds git executables.
```
./configure
make
make install
```

## Setting up the server

You must create a git user and a git group first:
```
useradd -Ur -md /srv/git -s /usr/local/bin/git-host git
cp -R /usr/share/git-core/templates /srv/git
mkdir /srv/git/repositories
cat > /srv/git/.gitconfig <