code: def ensure_repo_exists(self):
          
          if not os.path.isdir(self.cwd):
              os.makedirs(self.cwd)
          if not os.path.isdir(os.path.join(self.cwd, ".git")):
              self.git.init()
              self.git.config("user.email", "you@example.com")
              self.git.config("user.name", "Your Name")
docs: Create git repo if one does not exist yet