Notes to self from: http://www.rubynginx.com/index.php/2012/10/05/installing-and-configuring-git-and-gitolite-on-ubuntu-12-04/
What is Git ?
Git is a distributed version control system released to the public in 2005. The program allows for non-linear development of projects, and can handle large amounts of data effectively by storing it on the local server.
1. Install and Configure Git
| sudo apt-get install git-core git config --global user.name "Anu" git config --global user.email anu.kasani@bluecoat.com
Configure default editor:
git config --global core.editor vi psqa@psqa-Precision-WorkStation-T3500:~$ git config --list user.name=Anu user.email=anu.kasani@bluecoat.com core.editor=vi 2. Add and set up git user environment sudo adduser git psqa@psqa-Precision-WorkStation-T3500:~$ sudo adduser git Adding user `git' ... Adding new group `git' (1001) ... Adding new user `git' (1001) with group `git' ... Creating home directory `/home/git' ... Copying files from `/etc/skel' ... Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully Changing the user information for git Enter the new value, or press ENTER for the default Full Name []: gitFirstName Room Number []: 1 Work Phone []: 1 Home Phone []: 1 Other []: 1 Is the information correct? [Y/n] yes su git cd ~ mkdir .ssh touch .ssh/authorized_keys chmod 700 .ssh chmod 600 .ssh/authorized_keys psqa@psqa-Precision-WorkStation-T3500:~$ su git Password: git@psqa-Precision-WorkStation-T3500:/home/psqa$ cd ~ git@psqa-Precision-WorkStation-T3500:~$ pwd /home/git git@psqa-Precision-WorkStation-T3500:~$ mkdir .ssh git@psqa-Precision-WorkStation-T3500:~$ touch .ssh/authorized_keys git@psqa-Precision-WorkStation-T3500:~$ chmod 700 .ssh git@psqa-Precision-WorkStation-T3500:~$ chmod 600 .ssh/authorized_keys git@psqa-Precision-WorkStation-T3500:~$ |