Add GitRepo.init functionality.