From 8a0d8695d2f544728e3746088324d8a49f73d28d Mon Sep 17 00:00:00 2001 From: Will Budic Date: Thu, 15 May 2025 21:40:15 +1000 Subject: [PATCH] . --- .../git_installation_with_gitweb.md | 24 +++++++++++++++---- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/configuration_notes/git_installation_with_gitweb.md b/configuration_notes/git_installation_with_gitweb.md index 13dc094..b6f74bf 100644 --- a/configuration_notes/git_installation_with_gitweb.md +++ b/configuration_notes/git_installation_with_gitweb.md @@ -9,8 +9,9 @@ 3. [Create /srv/git/some_repository](#create-on-server-global-repository) - * Change permissions to git group for some_repository - * git clone /srv/git/some_repository with: git clone some_user@server:/srv/git/some_repository + * Change permissions to git group for some_repository. +4. + * git clone /srv/git/some_repository with: ```git clone some_user@server:/srv/git/some_repository``` 4. [Git add, commit, push from the server if it is an initial new repository.](#git-add--commit) @@ -29,8 +30,8 @@ ```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. + * These are system type of accounts. That share same home directory which the admin allow can public service access to an shared home. + * Setting to a shared home in /tmp somewhere is not recommended. As on reboot the system might wipe the tmp dir. ```bash mkdir /home/dev_share @@ -54,6 +55,16 @@ useradd -r -s /usr/bin/rbash -g git --home /home/dev_share dev_user [Top](#git-installation-for-developers-steps) ## Create On Server Global Repository +```bash + mkdir /srv/git/PerlCNFWEBServer.git + chown -R git:git /srv/git/PerlCNFWEBServer.git/ + cd /srv/git/PerlCNFWEBServer.git + touch git-daemon-export-ok + cd /srv/git + git init --bare --shared=group -b master PerlCNFWEBServer.git +``` + + [Top](#git-installation-for-developers-steps) @@ -67,11 +78,14 @@ useradd -r -s /usr/bin/rbash -g git --home /home/dev_share dev_user #### **Table Of Contents** - - [Git Installation For Developers Steps](#git-installation-for-developers-steps) - [Adding User](#adding-user) + - [Add git account first, if not already there](#add-git-account-first-if-not-already-there) + - [Adding Without Shell Access Method](#adding-without-shell-access-method) + - [Adding With Shell Access as Remote](#adding-with-shell-access-as-remote) - [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 -- 2.34.1