tech_notes

A collection of notes on setups and implementations.
Log | Files | Refs | README

commit cee6bf69b62710455ad891cb877e3031c3a5f507
parent 0af3e7b8d4059338f62801ef10bc57f32ad77c6d
Author: Julian Piribauer <julian.piribauer@gmail.com>
Date:   Thu, 19 Feb 2026 21:52:42 +0100

Updating languages

Diffstat:
Mstagit.md | 18+++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/stagit.md b/stagit.md @@ -61,8 +61,8 @@ echo "done" and make it executable: -```bash -chmod +x /usr/local/bin/update-git.sh +```console +# chmod +x /usr/local/bin/update-git.sh ``` ## Post-receive hook @@ -82,23 +82,23 @@ Make it executable as well with chmod +. Instruct git to use it as a template: -```bash -git config --system init.templateDir /srv/git/template +```console +# git config --system init.templateDir /srv/git/template ``` Finally, we give all users reading rights to all subfolders of the repo folders: -```bash -chmod -R a+rX /srv/git/repos -chmod -R a+rX /var/www/git +```console +# chmod -R a+rX /srv/git/repos +# chmod -R a+rX /var/www/git ``` ## Usage New repos can now be initiated on the server with -```bash -git init --bare my_repo.git +```console +# git init --bare my_repo.git ``` The website and the repo endpoint will be updated upon the first push (and future ones).