Grit gives you object oriented read/write access to Git repositories via Ruby.