gbp-import-dsc(1) Import Debian packages into a Git repository


gbp~import-dsc [ --version ] [ --help ] [ --verbose ] [ --color=[auto|on|off] ] [ --color-scheme=COLOR_SCHEME ] [ --allow-same-versions ] [ --author-date-is-committer-date ] [ --author-is-committer ] [ --debian-branch=branch_name ] [ --debian-tag=tag-format ] [ --download ] [ --filter=pattern ] [ --keyid=gpg-keyid ] [ --[no-]create-missing-branches ] [ --[no-]pristine-tar ] [ --[no-]sign-tags ] [ --skip-debian-tag= ] [ --upstream-branch=branch_name ] [ --upstream-tag=tag-format ] debian-source.dsc

gbp~import-dsc [ options ] --download [ --[no-]allow-unauthenticated ] URL | source-package


gbp~import-dsc imports a Debian source package into a Git repository, notes the package version in the commit logs, and commits the change. All information, including package name, version, Debian diffs, and upstream source, is automatically detected from the source package.

If the command is run from within an existing repository, it will import into this; if not, a new repository named as the Debian source package is created.


Print version of the program, i.e. version of the git-buildpackage suite
Verbose execution
Print help and exit
Whether to use colored output.
Colors to use in output (when color is enabled). The format for COLOR_SCHEME is '<debug>:<info>:<warning>:<error>'. Numerical values and color names are accepted, empty fields imply the default color. For example, --git-color-scheme='cyan:34::' would show debug messages in cyan, info messages in blue and other messages in default (i.e. warning and error messages in red).
The branch in the Git repository the upstream sources are put onto. Default is upstream.
The branch in the Git repository the debian sources are put onto. Default is master.
GPG sign all created tags
use this keyid for gpg signing tags
use this tag format when tagging Debian versions, default is debian/%(version)s
use this tag format when tagging upstream versions, default is upstream/%(version)s
Don't create Debian tag after importing the Debian patch. This can be useful if you already created a package but want to further work on it after importing it into git.
filter out files glob-matching pattern. Can be given multiple times.
generate pristine-tar delta file
Download the source package instead of looking for it in the local file system. The argument can either be a source-package name or a URL. The former uses apt-get to download the source while the later uses dget.
Whether to skip signature verification on downloads.
Allow one to import a package with the same debian version.
When importing the Debian patch, use the author identity as committer identity.
When importing the Debian patch, use the author date as committer date.

Warning: Git will subtly misbehave if the committer date of a commit is not later than or equal to all its parents.
Create missing upstream and debian branch if missing.


Several gbp.conf files are parsed to set defaults for the above command-line arguments. See the gbp.conf(5)> manpage for details.


Download and import a source package from a URL:

      gbp~import-dsc --download

Download and import a source package via apt-get source from unstable:

      gbp~import-dsc --download hello/sid


Guido Guenther <[email protected]>