commit 0198d2c5cd61ab73a926c7ee243fe4def134b6cc parent b0caf47a230054efdf77b0b976cfcf9d0fbdc34c Author: kattrali <kattrali@web> Date: Wed, 11 Sep 2024 12:47:06 +0200 add git repo info to eik Diffstat:
| M | eik.mdwn | | | 23 | +++++++++++++++++++++++ |
1 file changed, 23 insertions(+), 0 deletions(-)
diff --git a/eik.mdwn b/eik.mdwn @@ -59,3 +59,26 @@ motd message See `/etc/update-motd.d/` for the scripts. When a user logs in, these scripts are all run. They must be executable to be run. Feel free to add some nice welcome screens! There are also some configuration knobs in `/etc/ssh/sshd_config` which related to showing the last log in and the default `/etc/motd`. These have been turned off for now. + +git hosting +----------- + +Git repositories are located in `/var/www/git.permacomputing.net/repos`. Any user in the `gitusers` group has access to reading and writing these files. + +* to add a user to the group (replacing `USERNAME` as needed): + + ```useradd --append --groups gitusers USERNAME``` + +* to create a new repository (via ssh, replacing `USERNAME` and `REPONAME`): + + ``` + ssh USERNAME@eik \ + "git init --bare /var/www/git.permacomputing.net/repos/REPONAME" + ``` + +* to add a repository as a git remote (for `git push`, replacing `USERNAME` and `REPONAME`): + + ``` + git remote add pmc \ + ssh://USERNAME@eik/var/www/git.permacomputing.net/repos/REPONAME + ```