Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/valentindebon/git-host
- Owner: ValentinDebon
- License: bsd-3-clause
- Created: 2022-07-09T14:16:02.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-12-19T20:41:07.000Z (about 2 months ago)
- Last Synced: 2024-12-19T21:31:00.190Z (about 2 months ago)
- Topics: bloat-free, git, self-hosted, ssh
- Language: C
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 <