Move git methods to Git struct