gbp-pull(1)

NAME
gbp-pull - Safely update a repository from remote

SYNOPSIS
\FCgbp pull\F[]
[\FC--version\F[]] [\FC--help\F[]] [\FC--verbose\F[]] [\FC--color=\F[][auto|on|off]] [\FC--color-scheme=\F[] COLOR_SCHEME] [\FC--force\F[]] [\FC--all\F[]] [\FC--redo-pq\F[]] [\FC--[no-]pristine-tar\F[]] [\FC--ignore-branch\F[]] [\FC--debian-branch=\F[] branch_name] [\FC--upstream-branch=\F[] branch_name] [\FC--track-missing\F[]] [\FC--depth=\F[] depth] [repository]

DESCRIPTION
gbp pull updates the debian, upstream and pristine-tar branches from remote repositories in one go. It checks if the update is safe (would result in a fast-forward merge) and aborts otherwise.

If given on the command line the changes are fetched from the given repository otherwise the default for repository is read from the remote configuration for each branch (in git's configuration).

OPTIONS

\FC--version\F[]
    Print version of the program, i.e. version of the git-buildpackage suite

\FC-v\F[], \FC--verbose\F[]
    Verbose execution

\FC-h\F[], \FC--help\F[]
    Print help and exit

\FC--color=\F[][auto|on|off]
    Whether to use colored output.

\FC--color-scheme=\F[]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, \FC--git-color-scheme=\F[]\FC'cyan:34::'\F[] would show debug messages in cyan, info messages in blue and other messages in default (i.e. warning and error messages in red).

\FC--force\F[]
    Force a branch update even if this results in a non fast forward update.
    Warning

    Forcing a branch update makes you lose your modifications.

\FC--all\F[]
    Update all remote-tracking branches that have identical name in the remote repository.

\FC--redo-pq\F[]
    Also rebuild the corresponding patch-queue using gbp pq.
    Warning

    This drops the patch-queue branch if it exists.

\FC--ignore-branch\F[]
    Don't care if we're on a branch or in detached head state.

\FC--debian-branch\F[]=branch_name
    The branch in the Git repository the Debian package is being developed on, default is master.

\FC--upstream-branch\F[]=branch_name
    The branch in the Git repository the upstream sources are put onto. Default is upstream.

\FC--track-missing\F[]
    If a branch is missing in the local repository try to fetch it from the remote side and (if it exists) fetch it and set up branch tracking for it. This ensures that branches that are added at a later point to the remote side (e.g. pristine-tar) are picked up automatically. Note that it's not an error for the branch to not exist on the remote side.

\FC--depth\F[]=depth
    Git history depth, for deepening shallow git clones.

\FC--pristine-tar\F[]
    Whether to update the pristine-tar branch too.

EXIT CODES
When gbp pull finishes, it indicates success or failure with its exit code:

\FC0\F[]
    Success.

\FC1\F[]
    An error occurred during the pull, see the printed error message for details.

\FC2\F[]
    At least one branch couldn't be fast forwarded.

CONFIGURATION FILES
Several \FCgbp.conf\F[] files are parsed to set defaults for the above command-line arguments. See the gbp.conf(5) manpage for details.

SEE ALSO
gbp-buildpackage(1), gbp-clone(1), gbp-pq(1), gbp.conf(5)

AUTHOR
Guido Günther <\FCagx@sigxcpu.org\F[]>