You can look at grit , which is a ruby library that provides access to materials in the git repository.
I use grit on my personal blog. I write articles in text files and upload them to the git repository and then drag the git repository to my server, where my rails application reads files from git repo as blog posts using grit.
For example, here's how easy it is to get the last commit message:
require 'grit' include Grit repo = Repo.new('<path to your .git dir>') puts repo.commits('master',1)[0].message
source share