Scroll to navigation

GBP-CLONE(1) git-buildpackage Manual GBP-CLONE(1)


gbp-clone - Clone a repository from remote


gbp clone [ --version ] [ --help ] [ --verbose ] [ --color=[auto|on|off] ] [ --color-scheme=COLOR_SCHEME ] [ --all ] [ --[no-]pristine-tar ] [ --debian-branch=branch_name ] [ --upstream-branch=branch_name ] [ --depth=depth ] remote_uri


gbp clone clones a remote repository and sets up tracking branches for the debian, upstream and pristine-tar branches. This way you can easily update later using gbp pull.


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).
Track all branches, not only debian and upstream.
The branch in the Git repository the Debian package is being developed on, default is master.
The branch in the Git repository the upstream sources are put onto. Default is upstream.
Git history depth, for creating shallow git clones.
Track pristine tar branch.


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


gbp-buildpackage(1), gbp-pull(1), gbp.conf(5)


Guido Guenther <>
29 October 2014