gbp-import-dsc — 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] [--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] [--repo-user=[GIT|DEBIAN]] [--repo-email=[GIT|DEBIAN]] debian-source.dsc [target]

gbp import-dsc [options] [--[no-]allow-unauthenticated] [URL] [target]


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™ modifications and upstream source, is automatically detected from the source package. After import the repository can be used with the other gbp tools.

If the command is run from within an existing Git™ repository, it will import into it; if not, a new repository named as the Debian source package is created. You can override the location of the new repository by specifying the optional target argument.

When given a URL gbp import-dsc will download the source package prior to importing it. dget™ is used for all schemes except for the special scheme apt:/// which uses apt-get™ (and therefore needs deb-src entries in your /etc/apt/sources.list). The later can be abbreviated by using the pseudo URL apt:.



Print version of the program, i.e. version of the git-buildpackage suite

-v, --verbose

Verbose execution

-h, --help

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 from upstream tarballs and the debian tarball of 3.0(quilt) packages. Note that the .diff.gz of 1.0 source format packages is currently not filtered.

This option