# GIT-DEBORIG(1) - man - phpMan

[GIT-DEBORIG(1)](https://www.chedong.com/phpMan.php/man/GIT-DEBORIG/1/markdown)                                                                        [GIT-DEBORIG(1)](https://www.chedong.com/phpMan.php/man/GIT-DEBORIG/1/markdown)



## NAME
       git-deborig - try to produce Debian orig.tar using [git-archive(1)](https://www.chedong.com/phpMan.php/man/git-archive/1/markdown)

## SYNOPSIS
       **git** **deborig** [**--force**|**-f**] [**--just-print**|**--just-print-tag-names**] [**--version=**_VERSION_]
       [_COMMITTISH_]

## DESCRIPTION
       **git-deborig** tries to produce the orig.tar you need for your upload by calling [**git-archive**(1)](https://www.chedong.com/phpMan.php/man/git-archive/1/markdown)
       on an existing git tag or branch head.  It was written with the [**dgit-maint-merge**(7)](https://www.chedong.com/phpMan.php/man/dgit-maint-merge/7/markdown) workflow
       in mind, but can be used with other workflows.

       **git-deborig** will try several common tag names.  If this fails, or if more than one of those
       common tags are present, you can specify the tag or branch head to archive on the command
       line (_COMMITTISH_ above).

       **git-deborig** will override [**gitattributes**(5)](https://www.chedong.com/phpMan.php/man/gitattributes/5/markdown) that would cause the contents of the tarball
       generated by [**git-archive**(1)](https://www.chedong.com/phpMan.php/man/git-archive/1/markdown) not to be identical with the commitish archived: the **export-subst**
       and **export-ignore** attributes.

       **git-deborig** should be invoked from the root of the git repository, which should contain
       _debian/changelog_.

## OPTIONS
### -f --force
           Overwrite any existing orig.tar in the parent directory.

### --just-print
           Instead of actually invoking [**git-archive**(1)](https://www.chedong.com/phpMan.php/man/git-archive/1/markdown), output information about how it would be
           invoked.  Ignores _--force_.

           Note that running the [**git-archive**(1)](https://www.chedong.com/phpMan.php/man/git-archive/1/markdown) 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)](https://www.chedong.com/phpMan.php/man/git-archive/1/markdown), as detailed above.

### --just-print-tag-names
           Instead of actually invoking [**git-archive**(1)](https://www.chedong.com/phpMan.php/man/git-archive/1/markdown), 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_.

## SEE ALSO
       [**git-archive**(1)](https://www.chedong.com/phpMan.php/man/git-archive/1/markdown), [**dgit-maint-merge**(7)](https://www.chedong.com/phpMan.php/man/dgit-maint-merge/7/markdown), [**dgit-maint-debrebase**(7)](https://www.chedong.com/phpMan.php/man/dgit-maint-debrebase/7/markdown)

## AUTHOR
       **git-deborig** was written by Sean Whitton <<spwhitton@spwhitton.name>>.



Debian Utilities                             2026-03-04                               [GIT-DEBORIG(1)](https://www.chedong.com/phpMan.php/man/GIT-DEBORIG/1/markdown)
