Grit gives you object oriented read/write access to Git repositories via Ruby. Requires ruby 1.9+