gbp-config(1)

πŸ’– gbp-config(1) β€” or, "how do I ask gbp what it's thinking" πŸ’–

okay bestie, so this is a page from the git-buildpackage Manual (yeah, the whole git-buildpackage fam, they're all here), and it's about the little command that tells you what config values gbp is actually gonna use. it's giving "let me just check the vibes before I commit" energy and honestly? iconic. πŸŽ€


✨ NAME ✨

gbp-config β€” query configuration values πŸ¦‹

like, you ask it stuff, it tells you stuff. that's the whole thing.


🌸 SYNOPSIS 🌸

gbp config [--version] [--help] [--verbose] [--color=[auto|on|off]]
           [--color-scheme= COLOR_SCHEME] {command.option | command}

πŸ’… DESCRIPTION πŸ’…

so gbp config prints values from the configuration files. it interpolates the value for option of command β€” which is a fancy way of saying it goes and figures out what the value would actually be, and then shows you. no cap. πŸ”₯


πŸ‘‘ OPTIONS πŸ‘‘

  • --version β€” prints the version of the program, i.e. the version of the git-buildpackage suite. you know, for when you're like "wait which one am I even running"
  • -v, --verbose β€” verbose execution. more words, more detail, more for you to read. main character energy for your terminal output πŸ’–
  • -h, --help β€” print help and exit. the classic "help me pls" button 🫢
  • --color=[auto|on|off] β€” whether to use colored output. auto does its own vibe check, on and off are pretty self-explanatory ngl 🌈
  • --color-scheme=COLOR_SCHEME β€” the colors to use in output (only when color is enabled, obviously). the format for COLOR_SCHEME is '<debug>:<info>:<warning>:<error>'. numerical values and color names are accepted, and 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). so basically you're picking each little slot's outfit πŸ’…

⭐ EXIT CODES ⭐

when gbp config finishes, it indicates success or failure with its exit code. here's the breakdown, no ambiguity bestie:

  • 0 β€” Success. πŸŽ‰ slay, it worked.
  • 1 β€” Failed to parse command line. πŸ’€ you typed something it couldn't make sense of.
  • 2 β€” The value did not exist. 😭 it looked. it was not there.

πŸ¦‹ EXAMPLES πŸ¦‹

print the value upstream-branch that gbp buildpackage would use:

$ gbp config buildpackage.upstream-branch
buildpackage.upstream-branch=upstream

print the values of all of the gbp buildpackage options:

$ gbp config buildpackage
buildpackage.upstream-branch=upstream
buildpackage.debian-branch=master
...

see? the "..." is doing so much heavy lifting there. it's giving teaser trailer. πŸ™ˆ


πŸŽ€ CONFIGURATION FILES πŸŽ€

several gbp.conf files are parsed to set defaults for the above command-line arguments. head over to the gbp.conf(5) manpage for the details β€” that's where the lore lives, iykyk.


πŸ’œ SEE ALSO πŸ’œ

  • gbp.conf(5) β€” go read it, bestie, it's literally right there

πŸ‘Έ AUTHOR πŸ‘Έ

Guido GΓΌnther <agx@sigxcpu.org> β€” thank you for your service, king 🫑


and that's the whole page!! go forth and query your config values, you absolute legend πŸ’–βœ¨

okay so this was gbp-config(1) from the git-buildpackage suite, and the version on the tin is dated 26 May 2026 β€” mwah, mwah, xoxo, go config your heart out πŸ’…πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from