From: Will Budic Date: Wed, 18 Dec 2024 09:43:13 +0000 (+1100) Subject: . X-Git-Url: https://lifelog.hopto.org/gitweb/?a=commitdiff_plain;h=aff772d09718336d1ce75c7480152f9a78817697;p=dev_notes.git . --- diff --git a/configuration_notes/git_installation_with_gitweb.md b/configuration_notes/git_installation_with_gitweb.md index f625eca..13dc094 100644 --- a/configuration_notes/git_installation_with_gitweb.md +++ b/configuration_notes/git_installation_with_gitweb.md @@ -23,11 +23,32 @@ - ## Adding User +### Add git account first, if not already there + * Check With + ```git config --list``` + +### Adding Without Shell Access Method + * Thease are system type of accounts. That share same home directory wich the admin allow can public sercice access to an shared home. + * Setting to a shared home in /tmp somewhere is not recomended. As on reboot the system might wipe the tmp dir. + +```bash +mkdir /home/dev_share +chown -R git:git /home/dev_share +useradd -r -s /bin/false -g git --home /home/dev_share dev_user +password dev_user +``` + +### Adding With Shell Access as Remote + * This links to remote bash shell if any special to system. +```bash +useradd -r -s /usr/bin/rbash -g git --home /home/dev_share dev_user +``` [Top](#git-installation-for-developers-steps) + + ## Create Public Key on Client [Top](#git-installation-for-developers-steps) @@ -41,16 +62,16 @@ [Top](#git-installation-for-developers-steps) - +--- -###**Table Of Contents** +#### **Table Of Contents** + - [Git Installation For Developers Steps](#git-installation-for-developers-steps) - [Adding User](#adding-user) - [Create Public Key on Client](#create-public-key-on-client) - [Create On Server Global Repository](#create-on-server-global-repository) - [Git Add & Commit](#git-add--commit) - - [**Table Of Contents**](#table-of-contents) \ No newline at end of file