gbp-pull(1)
π gbp-pull β like, the manual page bestie
okay so this is gbp-pull(1), part of the git-buildpackage Manual, and it's genuinely one of the most useful lil commands in the whole suite. sit down, get a snack, we're doing this π
β¨ NAME β¨
gbp-pull β update a Git repository from a remote, but like, aware of the packaging branch tracking that needs to happen. she knows things. π
πΈ SYNOPSIS πΈ
gbp pull [--version] [--help] [--verbose] [--color=[auto|on|off]]
[--color-scheme= COLOR_SCHEME] [--force] [--all] [--redo-pq]
[--[no-]pristine-tar] [--ignore-branch] [--debian-branch=
branch_name] [--upstream-branch= branch_name] [--track-missing]
[--depth= depth] [repository]
π¦ DESCRIPTION π¦
so gbp pull updates the debian, upstream and pristine-tar branches from remote repositories in one single go. no cap, all three at once, main character energy fr fr β¨
and the way that it's safe?? it checks whether the update would result in a fast-forward merge first, and if it wouldn't, it aborts. it's giving protective bestie. it will not let you do something cursed to your history without you literally asking for it. π
if you give a repository on the command line, the changes are fetched from that repository. if you don't? then repository defaults to whatever the remote configuration says for each branch (read from git's configuration). iykyk. π
π OPTIONS π
--versionβ prints the version of the program, aka the version of the git-buildpackage suite. cute little identity check. πͺͺ-v,--verboseβ verbose execution. she will tell you everything. π-h,--helpβ prints help and exits. the classic escape hatch. πͺ--color=[auto|on|off]β whether to use colored output or not. bestie, pickon. obviously. π--color-scheme=COLOR_SCHEMEβ the colors to use in the output (only matters when color is enabled). the format forCOLOR_SCHEMEis'<debug>:<info>:<warning>:<error>'. numerical values and color names are both accepted, and an empty field means "use the default color for this one". for example,--git-color-scheme='cyan:34::'would show debug messages in cyan, info messages in blue, and the other messages in default β which means warning and error messages show up in red. aesthetic customization, we love to see it. π¨--forceβ forces a branch update even if that results in a non fast forward update. β οΈ warning: forcing a branch update makes you lose your modifications. no take-backs, no undo, gone. π
genuinely though, this one eats your changes. like rm -rf but with feelings.
--allβ updates all remote-tracking branches that have an identical name in the remote repository. all of them. the whole squad. π―--redo-pqβ also rebuilds the corresponding patch-queue usinggbp pq. β οΈ warning: this drops the patch-queue branch if it exists. bye bestie π--ignore-branchβ don't care whether we're on a branch or in detached head state. she's unbothered. unshakeable. π--debian-branch=branch_nameβ the branch in the Git repository where the Debian package is being developed. default ismaster.--upstream-branch=branch_nameβ the branch in the Git repository where the upstream sources are put onto. default isupstream.--track-missingβ 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 makes sure that branches added later on the remote side β thinkpristine-tarβ get picked up automatically. note that it's not an error for the branch to not exist on the remote side. it's just a vibe check, not a crisis. β¨--depth=depthβ git history depth, for deepening shallow git clones. digging deeper, literally. βοΈ--pristine-tarβ whether to update thepristine-tarbranch too. π«Ά
π EXIT CODES π
when gbp pull finishes, it tells you success or failure through its exit code. the receipts, basically:
0β success. slay. π1β an error occurred during the pull. check the printed error message for the details. π2β at least one branch couldn't be fast forwarded. oof. π
π CONFIGURATION FILES π
several gbp.conf files get parsed to set defaults for all the command-line arguments above. go read the gbp.conf(5) manpage for the deets, bestie. π
π SEE ALSO π
gbp-buildpackage(1), gbp-clone(1), gbp-pq(1), gbp.conf(5)
π AUTHOR π
Guido GΓΌnther <agx@sigxcpu.org> β the icon who wrote this. thank you for your service. π
okay and for the sign-off: this page is dated 26 May 2026, it'sgbp-pull(1)from the git-buildpackage manual, so that's the source and version right there. take care of your branches, never--forceunless you mean it, and hydrate!! πβ¨π¦π
π¦ where this page comes from
- ubuntu stonking: git-buildpackage 0.9.43 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms