A quick tutorial showing you how to install and setup git on an Ubuntu server and pull a repo from Github.

A quick tutorial showing you how to install and setup git on an Ubuntu server and pull a repo from Github.
If you need to see all of the groups assigned to a user simply type the following into the Terminal:
groups username
To display all the groups on your Ubuntu system just type:
groups
There are two ways to find the owner and group of a directory in Ubuntu:
First way:
ls -l /path/to/file
The 3rd field outputted is the user and and the fourth is the group
drwxr-xr-x 2 user group 4096 Feb 7 01:17 foldername
Second way:
stat -c "%U %G" /path/to/file
This will return
user group
A quick tutorial showing you how to ensure that new files created in your file structure will inherit the existing user and groups (no matter which user creates the new files). This tutorial is for Debian/Ubuntu and Mac: