    def get_tree(self, commit: str) -> requests.Response:
        """
        Get a git tree in the current repo at the given commit.

        Args:
            commit (`str`):
                The commit to base current existing files.

        Returns:
            (`Response`)
                A git tree for the repo

        Raises:
            (`HTTPError`)
                Raise error in request.
        """

        url = f'{self._root}/api/v1/repos/{self._author}/{self._repo}/git/trees/{commit}?recursive=1'
        try:
            response = requests.get(url)
            response.raise_for_status()
            return response
        except HTTPError as e:
            raise e
Get a git tree in the current repo at the given commit.

Args:
commit (`str`):
The commit to base current existing files.

Returns:
(`Response`)
A git tree for the repo

Raises:
(`HTTPError`)
Raise error in request.
towhee/utils/hub_utils.py