]> lifelog.hopto.org Git - dev_notes.git/commitdiff
.
authorWill Budic <redacted>
Thu, 15 May 2025 11:40:15 +0000 (21:40 +1000)
committerWill Budic <redacted>
Thu, 15 May 2025 11:40:15 +0000 (21:40 +1000)
configuration_notes/git_installation_with_gitweb.md

index 13dc094a5b60dc2987d9171f3a0db9174e2bf214..b6f74bf6260fed323ac321688a1a4b71b59b79dc 100644 (file)
@@ -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
 
 <!-- code_chunk_output -->
 #### **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)
 
 <!-- /code_chunk_output -->
\ No newline at end of file