'\" -*- coding: us-ascii -*- .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-push 1 "21 March 2019" "" "git-buildpackage Manual" .SH NAME gbp-push \- Push Debian packaging changes to a Git remote .SH SYNOPSIS 'nh .fi .ad l \fBgbp\ push\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--ignore-branch\fR] [\fB--debian-branch=\fR \fIbranch_name\fR] [\fB--upstream-branch=\fR \fIbranch_name\fR] [\fB--debian-tag=\fR \fItag-format\fR] [\fB--upstream-tag=\fR \fItag-format\fR] [\fB--[no-]pristine-tar\fR] [\fB--dry-run\fR] [\fIrepository\fR] 'in \n(.iu-\nxu .ad b 'hy .SH DESCRIPTION \fBgbp\ push\fR pushes your local changes to a remote repository. It is best run after uploading a Debian package to the archive to update you \*(T<\fBdebian\-branch\fR\*(T>, \*(T<\fBupstream\-branch\fR\*(T>, pristine-tar branch and corresponding tags. It will in order .TP 0.2i \(bu Verify that it is being executed from the \*(T<\fBdebian\-branch\fR\*(T>. .TP 0.2i \(bu Determine the debian tag from \*(T<\fIdebian/changelog\fR\*(T> and add it the list of things to push if the changelog does not indicate an unreleased package. .TP 0.2i \(bu Determine the upstream tag from \*(T<\fIdebian/changelog\fR\*(T> and add it to the list of things to push if it's not a native package. .TP 0.2i \(bu Determine if the tags correspond to the branch tips of the corresponding upstream and debian branches. If so, these branches will be added to the list of things to push. If not the changes will only be pushed up to the commit that is referenced by the corresponding tag. .TP 0.2i \(bu Determine if the pristine-tar branch needs to be pushed and if so adds it to the list of things to push. .TP 0.2i \(bu Finally, if not in dry-run mode, pushes the above changes to the remote side. .PP If a \fIremote\fR is given on the command line the changes are pushed to the given remote repository. By default it will push to the current branchs remote and fall back to \fIorigin\fR. .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\-\-ignore\-branch\fR\*(T> Don't fail if the \*(T<\fBdebian\-branch\fR\*(T> does not match the currently checked out branach and push the current branch instead. .TP \*(T<\fB\-\-debian\-branch\fR\*(T>=\fIbranch_name\fR The branch in the Git repository the Debian package is being developed on. If set to the empty value the branch will not be pushed. .TP \*(T<\fB\-\-debian\-tag=\fR\*(T>\fITAG-FORMAT\fR Use this tag format when looking for tags corresponding to a Debian version. Default is \fIdebian/%(version)s\fR. If set to the empty value the tag will not be pushed. .TP \*(T<\fB\-\-upstream\-branch\fR\*(T>=\fIbranch_name\fR The branch in the Git repository the upstream sources are put onto. If set to the empty value the branch will not be pushed. .TP \*(T<\fB\-\-upstream\-tag=\fR\*(T>\fITAG-FORMAT\fR Use this tag format when looking for tags of upstream versions. Default is \fIupstream/%(version)s\fR. If set to the empty value the tag will not be pushed. .TP \*(T<\fB\-\-pristine\-tar\fR\*(T> Whether to update the pristine-tar branch too. .TP \*(T<\fB\-\-dry\-run\fR\*(T> Pass the \*(T<\fB\-\-dry\-run\fR\*(T> to \fBgit\fR \*(T<\fBpush\fR\*(T>. So don't push anything, only check if things are pushable. .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-pull\fR(1), \fBgbp.conf\fR(5) .SH AUTHOR Guido G\(:unther <\*(T>