Setting up source control
At this point, it's a good idea to add our code to a hosted source control. This serves two purposes: the first is that it gives us a record of incremental changes made to each code file, and also acts as an off-site backup in case our development machine gets damaged or has a hard drive failure.
We'll be using Git (http://git-scm.com) as our Source Control Management (SCM) tool. If you don't have Git installed on your system, please follow the relevant installation instructions on the site. Additionally, we're going to use GitHub (http://github.com) as our off-site backup. There are other popular alternatives such as Bitbucket (http://bitbucket.org) or Unfuddle (http://unfuddle.com) that work just as well.
The workflow may vary depending on which service you use, but in general setting up a new repository involves the following steps:
Create a repository on the hosted service of your choice.
Initialize a new local repository using the following command:
git init.
Add...