code: def get_list_commits(self, branch: str = None,
                           reverse_order: bool = True) \
              -> Generator[Commit, None, None]:
          
          for commit in self.repo.iter_commits(branch, reverse=reverse_order):
              yield self.get_commit_from_gitpython(commit)
docs: Return a generator of commits of all the commits in the repo.
  
          :return: Generator[Commit], the generator of all the commits in the
              repo