{
    "mode": "man",
    "parameter": "git-get-tar-commit-id",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/git-get-tar-commit-id/1/json",
    "generated": "2026-06-10T16:21:37Z",
    "synopsis": "git get-tar-commit-id",
    "sections": {
        "NAME": {
            "content": "git-get-tar-commit-id - Extract commit ID from an archive created using git-archive\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "git get-tar-commit-id\n\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "Read a tar archive created by git archive from the standard input and extract the commit ID\nstored in it. It reads only the first 1024 bytes of input, thus its runtime is not influenced\nby the size of the tar archive very much.\n\nIf no commit ID is found, git get-tar-commit-id quietly exists with a return code of 1. This\ncan happen if the archive had not been created using git archive or if the first parameter of\ngit archive had been a tree ID instead of a commit ID or tag.\n",
            "subsections": []
        },
        "GIT": {
            "content": "Part of the git(1) suite\n\n\n\nGit 2.34.1                                   02/26/2026                         GIT-GET-TAR-COMMI(1)",
            "subsections": []
        }
    },
    "summary": "git-get-tar-commit-id - Extract commit ID from an archive created using git-archive",
    "flags": [],
    "examples": [],
    "see_also": [],
    "tldr": {
        "source": "official",
        "description": "Extract commit ID from an archive created using `git archive`.",
        "examples": [
            {
                "description": "Extract commit hash ID or quietly exit with a return code of 1",
                "command": "git < {{path/to/archive.tar}} get-tar-commit-id"
            }
        ]
    }
}