Pull out git methods for use in testing setup