Actions

EmSys

Git - Admin on the Git Server

From EdWiki

Revision as of 09:31, 23 June 2015 by Jshankar (Talk | contribs) (1 revision imported: EdWiki -- Emsys pages from Shukra)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Admin on the Git Server

  • What the Git Admin should do to add a new Project?
  • If the User(s) computer is not Authenticated:
    1. Save the received SSH public key file(s) to a temporary directory.
    2. Suppose, if you have received it from jshankar@cedt.iisc.ernet.in. save it as /tmp/id_rsa.jshankar.pub
    3. Append the SSH public Key to the /home/gituser/.ssh/authorized_keys file
$ cat /tmp/id_rsa.jshankar.pub >> /home/gituser/.ssh/authorized_keys
  • Create a bare repository of a project and set appropriate permissions
$ cd /opt/gitrepo
$ mkdir my_project.git
$ cd my_project.git
$ git --bare init
Initialized empty Git repository in /opt/gitrepo/my_project.git/ 
$ chgrp -R gitgrup /opt/gitrepo
$ chmod -R "g+wxr" /opt/gitrepo
  • Inform the User to create a project of the same name (my_project)