{
    "mode": "man",
    "parameter": "GIT-DEBORIG",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/GIT-DEBORIG/1/json",
    "generated": "2026-05-30T08:18:32Z",
    "synopsis": "git deborig [--force|-f] [--just-print|--just-print-tag-names] [--version=VERSION]\n[COMMITTISH]",
    "sections": {
        "NAME": {
            "content": "git-deborig - try to produce Debian orig.tar using git-archive(1)\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "git deborig [--force|-f] [--just-print|--just-print-tag-names] [--version=VERSION]\n[COMMITTISH]\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "git-deborig tries to produce the orig.tar you need for your upload by calling git-archive(1)\non an existing git tag or branch head.  It was written with the dgit-maint-merge(7) workflow\nin mind, but can be used with other workflows.\n\ngit-deborig will try several common tag names.  If this fails, or if more than one of those\ncommon tags are present, you can specify the tag or branch head to archive on the command\nline (COMMITTISH above).\n\ngit-deborig will override gitattributes(5) that would cause the contents of the tarball\ngenerated by git-archive(1) not to be identical with the commitish archived: the export-subst\nand export-ignore attributes.\n\ngit-deborig should be invoked from the root of the git repository, which should contain\ndebian/changelog.\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "",
            "subsections": [
                {
                    "name": "-f --force",
                    "content": "Overwrite any existing orig.tar in the parent directory.\n",
                    "flag": "-f",
                    "long": "--force"
                },
                {
                    "name": "--just-print",
                    "content": "Instead of actually invoking git-archive(1), output information about how it would be\ninvoked.  Ignores --force.\n\nNote that running the git-archive(1) invocation outputted with this option may not\nproduce the same output.  This is because git-deborig takes care to disables git\nattributes otherwise heeded by git-archive(1), as detailed above.\n",
                    "long": "--just-print"
                },
                {
                    "name": "--just-print-tag-names",
                    "content": "Instead of actually invoking git-archive(1), or even checking which tags exist, print the\ntag names we would consider for the upstream version number in the first entry in the\nDebian changelog, or that supplied with --version.\n\n--version=VERSION\nInstead of reading the new upstream version from the first entry in the Debian changelog,\nuse VERSION.\n",
                    "long": "--just-print-tag-names"
                }
            ]
        },
        "SEE ALSO": {
            "content": "git-archive(1), dgit-maint-merge(7), dgit-maint-debrebase(7)\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "git-deborig was written by Sean Whitton <spwhitton@spwhitton.name>.\n\n\n\nDebian Utilities                             2026-03-04                               GIT-DEBORIG(1)",
            "subsections": []
        }
    },
    "summary": "git-deborig - try to produce Debian orig.tar using git-archive(1)",
    "flags": [
        {
            "flag": "-f",
            "long": "--force",
            "arg": null,
            "description": "Overwrite any existing orig.tar in the parent directory."
        },
        {
            "flag": "",
            "long": "--just-print",
            "arg": null,
            "description": "Instead of actually invoking git-archive(1), output information about how it would be invoked. Ignores --force. Note that running the git-archive(1) invocation outputted with this option may not produce the same output. This is because git-deborig takes care to disables git attributes otherwise heeded by git-archive(1), as detailed above."
        },
        {
            "flag": "",
            "long": "--just-print-tag-names",
            "arg": null,
            "description": "Instead of actually invoking git-archive(1), or even checking which tags exist, print the tag names we would consider for the upstream version number in the first entry in the Debian changelog, or that supplied with --version. --version=VERSION Instead of reading the new upstream version from the first entry in the Debian changelog, use VERSION."
        }
    ],
    "examples": [],
    "see_also": [
        {
            "name": "git-archive",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/git-archive/1/json"
        },
        {
            "name": "dgit-maint-merge",
            "section": "7",
            "url": "https://www.chedong.com/phpMan.php/man/dgit-maint-merge/7/json"
        },
        {
            "name": "dgit-maint-debrebase",
            "section": "7",
            "url": "https://www.chedong.com/phpMan.php/man/dgit-maint-debrebase/7/json"
        }
    ]
}