refactor SpecSupport::GitRepository

Single method for creating commits