I decided that I need some sort of Revision Control Software for my coding purposes, so I installed GitHub for Windows.
Problem is after I add a repository, copy source code in that folder and then click on commit it wants to commit to GitHub web site and is asking me to provide name and email.
Since my intention for using git is only to have revision control for myself and not to collaborate with other developers, I want to host repositories locally on my computer.
Is hosting locally possible and can I do it with GitHub for Windows?
I am using GitHub for Windows locally, so yes, it is possible. However, if you want to push your code you will have to push it to the GitHub website.
What I do is to have my repository on a Dropbox account, so that it is still online, but also private. (As opposed to free GitHub accounts that make your code public). If you are working on your code alone, this should be fine for you, if you just commit to the "local" Dropbox repository.
Also see this question, which helped me when I started this process.