commit f4e79ae74b90116d894e32afd386bda81956153b parent c2b5d4df65855650373d0138bbf925d654e710b7 Author: Vincent Forest <vincent.forest@meso-star.com> Date: Tue, 10 Jun 2025 22:11:26 +0200 git-publish: add a unpublish example Diffstat:
| M | git-publish.1 | | | 13 | +++++++++++++ |
1 file changed, 13 insertions(+), 0 deletions(-)
diff --git a/git-publish.1 b/git-publish.1 @@ -152,6 +152,19 @@ https://www.example.com/git: git-publish -u https://www.example.com/git /path/to/repository.git .Ed .Pp +Remove the data that makes the repository public, i.e. unpublish it by +removing the link to the publicly exposed +.Pa /srv/git +.Pq default value of Ev GIT_PUBLISH_DIR_GIT , +as well as its HTML pages in the +.Pa /srv/www/git/ +directory +.Pq default value of Ev GIT_PUBLISH_DIR_WWW +and its post-receive hook that updates them: +.Bd -literal -offset Ds +git-publish -d /path/to/repository.git +.Ed +.Pp Make public a set of bare git repositories: .Bd -literal -offset Ds git-publish -u https://www.example.com/git /path/to/*.git