'\" -*- coding: UTF-8 -*- .if \n(.g .ds T< \\FC .if \n(.g .ds T> \\F[\n[.fam]] .de URL \\$2 \(la\\$1\(ra\\$3 .. .if \n(.g .mso www.tmac .TH gbp-pull 1 "31 May 2023" "" "git-buildpackage Manual" .SH NAME gbp-pull \- Safely update a repository from remote .SH SYNOPSIS 'nh .fi .ad l \fBgbp\ pull\fR \kx .if (\nx>(\n(.l/2)) .nr x (\n(.l/5) 'in \n(.iu+\nxu [\fB--version\fR] [\fB--help\fR] [\fB--verbose\fR] [\fB--color=\fR[auto|on|off]] [\fB--color-scheme=\fR \fICOLOR_SCHEME\fR] [\fB--force\fR] [\fB--all\fR] [\fB--redo-pq\fR] [\fB--[no-]pristine-tar\fR] [\fB--ignore-branch\fR] [\fB--debian-branch=\fR \fIbranch_name\fR] [\fB--upstream-branch=\fR \fIbranch_name\fR] [\fB--track-missing\fR] [\fB--depth=\fR \fIdepth\fR] [\fIrepository\fR] 'in \n(.iu-\nxu .ad b 'hy .SH DESCRIPTION \fBgbp\ pull\fR updates the \fIdebian\fR, \fIupstream\fR and \fIpristine-tar\fR branches from remote repositories in one go. It checks if the update is safe (would result in a \fIfast-forward\fR merge) and aborts otherwise. .PP If given on the command line the changes are fetched from the given repository otherwise the default for \fIrepository\fR is read from the \fIremote\fR configuration for each branch (in git's configuration). .SH OPTIONS .TP \*(T<\fB\-\-version\fR\*(T> Print version of the program, i.e. version of the git-buildpackage suite .TP \*(T<\fB\-v\fR\*(T>, \*(T<\fB\-\-verbose\fR\*(T> Verbose execution .TP \*(T<\fB\-h\fR\*(T>, \*(T<\fB\-\-help\fR\*(T> Print help and exit .TP \*(T<\fB\-\-color=\fR\*(T>[auto|on|off] Whether to use colored output. .TP \*(T<\fB\-\-color\-scheme=\fR\*(T>\fICOLOR_SCHEME\fR Colors to use in output (when color is enabled). The format for COLOR_SCHEME is \&':::'. Numerical values and color names are accepted, empty fields imply the default color. For example, \*(T<\fB\-\-git\-color\-scheme=\fR\*(T>\*(T<'cyan:34::'\*(T> would show debug messages in cyan, info messages in blue and other messages in default (i.e. warning and error messages in red). .TP \*(T<\fB\-\-force\fR\*(T> Force a branch update even if this results in a non fast forward update. .RS \fBWarning\fR Forcing a branch update makes you lose your modifications. .RE .TP \*(T<\fB\-\-all\fR\*(T> Update all remote-tracking branches that have identical name in the remote repository. .TP \*(T<\fB\-\-redo\-pq\fR\*(T> Also rebuild the corresponding patch-queue using \fBgbp\ pq\fR. .RS \fBWarning\fR This drops the patch-queue branch if it exists. .RE .TP \*(T<\fB\-\-ignore\-branch\fR\*(T> Don't care if we're on a branch or in detached head state. .TP \*(T<\fB\-\-debian\-branch\fR\*(T>=\fIbranch_name\fR The branch in the Git repository the Debian package is being developed on, default is \fImaster\fR. .TP \*(T<\fB\-\-upstream\-branch\fR\*(T>=\fIbranch_name\fR The branch in the Git repository the upstream sources are put onto. Default is \fIupstream\fR. .TP \*(T<\fB\-\-track\-missing\fR\*(T> 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. \fIpristine-tar\fR) are picked up automatically. Note that it's not an error for the branch to not exist on the remote side. .TP \*(T<\fB\-\-depth\fR\*(T>=\fIdepth\fR Git history depth, for deepening shallow git clones. .TP \*(T<\fB\-\-pristine\-tar\fR\*(T> Whether to update the pristine-tar branch too. .SH "EXIT CODES" When \fBgbp\ pull\fR finishes, it indicates success or failure with its exit code: .TP \*(T<\fB0\fR\*(T> Success. .TP \*(T<\fB1\fR\*(T> An error occurred during the pull, see the printed error message for details. .TP \*(T<\fB2\fR\*(T> At least one branch couldn't be fast forwarded. .SH "CONFIGURATION FILES" Several \*(T<\fIgbp.conf\fR\*(T> files are parsed to set defaults for the above command-line arguments. See the \fBgbp.conf\fR(5) manpage for details. .SH "SEE ALSO" \fBgbp-buildpackage\fR(1), \fBgbp-clone\fR(1), \fBgbp-pq\fR(1), \fBgbp.conf\fR(5) .SH AUTHOR Guido G\(:unther <\*(T>