What is GIT ?
GIT is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and eciency. The following diagram is how we set up a website project that includes a development mirror of the live website located on an external server. Project admins will have access to this development site.
Lets see how GIT is used in a website development project. We assume that the site admin and web developer are two different people in this case.
The Power of GIT
GIT is a sophisticated project contributing tool. Its like a time machine, it creates various points in a project called versions. These versions are points that the project has been amended, added to or changed and makes a record of it. If a hacker has adjusted code on the website, it will be easy to undo what the hacker has done. Similarly if a new contribution to the project makes an update that does not play well with the rest of the site, the developer can roll back to a more stable point and figure out whats going wrong on the cloned repository.
Unfortunately GIT is restricted only to file's.
GIT does not version control your database. Timely backup of your database is required on a regular bases. GIT also does not support version controlling your website content. GIT is easy to learn and has a tiny footprint with lightning fast performance. It outclasses SCM tools like Subversion, CVS, Perforce, and ClearCase with features like cheap local branching, convenient staging areas, and multiple workflows.
Please read more about GIT on http://git-scm.com.
A Few useful GIT resources
We recommend using an easy GIT Client like "Source Tree" from Atlassian.
And for your repository management BitBucket or Stash which are also Atlassian products.