---
name: "git-import-dsc"
section: "1"
platform: "linux"
package: "git-buildpackage"
version: "0.6.22"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/gbp-import-dsc"
---

# git-import-dsc(1)

Import Debian packages into a Git repository

Part of [gbp-import-dsc(1)](/gbp-import-dsc/1.md).

## NAME

git-import-dsc, gbp-import-dsc - Import Debian packages into a Git repository

## SYNOPSIS

**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*

## DESCRIPTION

**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.

## OPTIONS

- **--version**

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

- **-v**

  - **--verbose**

  Verbose execution

- **-h**

  - **--help**

  Print help and exit

- **--color=***\[auto\|on\|off\]*

  Whether to use colored output.

- **--color-scheme=***COLOR\_SCHEME*

  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).

- **--upstream-branch=***branch\_name*

  The branch in the Git repository the upstream sources are put onto. Default is *upstream*.

- **--debian-branch=***branch\_name*

  The branch in the Git repository the debian sources are put onto. Default is *master*.

- **--\[no-\]sign-tags**

  GPG sign all created tags

- **--keyid=***gpg-keyid*

  use this keyid for gpg signing tags

- **--debian-tag=***tag-format*

  use this tag format when tagging Debian versions, default is *debian/%(version)s*

- **--upstream-tag=***tag-format*

  use this tag format when tagging upstream versions, default is *upstream/%(version)s*

- **--skip-debian-tag**

  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=***pattern*

  filter out files glob-matching pattern. Can be given multiple times.

- **--pristine-tar**

  generate pristine-tar delta file

- **--download**

  Download the source package instead of looking for it in the local file system. The argument can either be a *source-package* name or an *URL*. The former uses apt-get to download the source while the later uses dget.

- **--allow-unauthenticated**

  Whether to skip signature verification on downloads.

- **--allow-same-version**

  Allow to import a package with the same debian version.

- **--author-is-committer**

  When importing the Debian patch, use the author identity as committer identity.

- **--author-date-is-committer-date**

  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.

- **--\[no-\]create-missing-branches**

  Create missing upstream and debian branch if missing.

## CONFIGURATION FILES

Several *gbp.conf* files are parsed  to set defaults for the above commandline arguments. See the [**gbp.conf**(5)](/gbp.conf/5.md) manpage for details.

## SEE ALSO

[**gbp-import-dscs**(1)](/gbp-import-dscs/1.md), [**gbp-buildpackage**(1)](/gbp-buildpackage/1.md), [**gbp-import-orig**(1)](/gbp-import-orig/1.md), [**gbp-dch**(1)](/gbp-dch/1.md), **apt-get**(1), [**dget**(1)](/dget/1.md), [**gbp.conf**(5)](/gbp.conf/5.md), [**debuild**(1)](/debuild/1.md), [**git**(1)](/git/1.md), [**pristine-tar**(1)](/pristine-tar/1.md), *The Git-Buildpackage Manual* \<URL:file:///usr/share/doc/git-buildpackage/manual-html/index.html\>

## AUTHOR

Guido Guenther \<agx@sigxcpu.org\>
