From aeba2c5c63c58b5c357546b13cb675e67c823568 Mon Sep 17 00:00:00 2001 From: alex Date: Sat, 10 Jan 2026 18:43:45 +0100 Subject: WIP: replace gitweb with cgit --- infrastructure/roles/git/README.md | 33 ++------------------------------- 1 file changed, 2 insertions(+), 31 deletions(-) (limited to 'infrastructure/roles/git/README.md') diff --git a/infrastructure/roles/git/README.md b/infrastructure/roles/git/README.md index 37f6ceb..cf1135b 100644 --- a/infrastructure/roles/git/README.md +++ b/infrastructure/roles/git/README.md @@ -2,34 +2,5 @@ ## Create a repository -On the server: - -``` -git init --bare $REPOSITORY_PATH -``` - -## Push an existing repository - -``` -git remote add $REMOTE $SERVER_HOSTNAME:$REPOSITORY_PATH -git push $REMOTE main -``` - -## Exposing via gitweb - -``` -sudo ln -s $REPOSITORY_PATH /var/lib/git/$NAME.git -``` - -## Exposing via https - -``` -mv $REPOSITORY_PATH/hooks/post-update.sample $REPOSITORY_PATH/hooks/post-update -ln -s $REPOSITORY_PATH ~/public_html/$REPO.git -``` - -Ensure that you push once to the repo, or run `git update-server-info` in the repository. - -## Using non-bare repositories - -Alternatively, use non-bare repositories and symlink the `.git` directory to `/var/lib/git` or `~/public_html`. +You own `/srv/repos/$USER`. +You can put repositories there to expose them at `https://host/cgit/`. -- cgit v1.2.3