aboutsummaryrefslogtreecommitdiff
path: root/infrastructure/roles/git/README.md
diff options
context:
space:
mode:
authoralex <alex@pdp7.net>2026-01-10 18:43:45 +0100
committeralex <alex@pdp7.net>2026-01-10 18:43:45 +0100
commitaeba2c5c63c58b5c357546b13cb675e67c823568 (patch)
treeef4d04002574e43f2c6b04b550a45ba1f96ec45a /infrastructure/roles/git/README.md
parenta060a8b8fafcdfcc49dd2da37cd364afd9d0702e (diff)
WIP: replace gitweb with cgit
Diffstat (limited to 'infrastructure/roles/git/README.md')
-rw-r--r--infrastructure/roles/git/README.md33
1 files changed, 2 insertions, 31 deletions
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/`.