mod - refactor git related methods, move to git methods.