diff options
| author | alex <alex@pdp7.net> | 2026-01-10 18:43:45 +0100 |
|---|---|---|
| committer | alex <alex@pdp7.net> | 2026-01-10 18:43:45 +0100 |
| commit | aeba2c5c63c58b5c357546b13cb675e67c823568 (patch) | |
| tree | ef4d04002574e43f2c6b04b550a45ba1f96ec45a /infrastructure/roles/git/README.md | |
| parent | a060a8b8fafcdfcc49dd2da37cd364afd9d0702e (diff) | |
WIP: replace gitweb with cgit
Diffstat (limited to 'infrastructure/roles/git/README.md')
| -rw-r--r-- | infrastructure/roles/git/README.md | 33 |
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/`. |
