I've never used github before although I was aware of it long time ago. More and more I feel the need to version control my joomla site. For example, sometimes I change lots of js/php/css files to try a new layout or new function, but later I decide it doesn't work out, so I need to go back to the old version. At this stage, I would have to do a lot of work to restore the site to a previous version. I am imagining with github it would be a lot easier. But the question is, how can I make my joomla site working with github? I don't even know if it is viable.
I know github is being used on module/component development, but can I use it on a whole website? Or just a small part of my website? Can I form a repository from a cutsom js file and a PHP file from one of the modules and a custom CSS file? Does anyone actually use github this way?