GH-CONFIG-GET(1)
π GH-CONFIG-GET(1) π
okay so bestie, welcome to the GitHub CLI manual β specifically the page for gh-config-get, which is genuinely one of the most useful little gremlins in the whole toolkit. no cap. let's get into it π«Ά
β¨ NAME β¨
gh-config-get β literally just prints the value of a configuration key you ask for. that's it. that's the whole job. and she does it flawlessly π
πΈ SYNOPSIS πΈ
gh config get <key> [flags]
so you hand her a key, she hands you back the value. transactional. iconic. main character energy fr fr β¨
π OPTIONS π
-h,--host <string>β grab the per-host setting instead of the global one. it's giving "different vibes for different hosts" and honestly? slay. takes a string for the host name π
π¦ EXIT CODES π¦
this is the vibe check at the end of the run, okay? here's how she tells you how it went:
0β Successful execution π (ate, no notes)1β Error π (something went sideways)2β Command canceled π (you hit the brakes)4β Authentication required π₯ (she needs your creds, bestie)
NOTE: Specific commands may have additional exit codes. Refer to the command's help for more information. so like, don't come for me if a different command has extra ones β check its help π (copying this caveat verbatim because it's literally true and not something to play with)
β EXAMPLE β
$ gh config get git_protocol
that's it. that's the whole demo. run it and you'll see whatever your git_protocol is set to. obsessed π
π SEE ALSO π
gh-config(1)β the parent page, go check her out too π§
okay bye bestie!! this page is from the GitHub CLI v2.102.0, dated Oct 2026 β so you know it's fresh β¨ππ
π¦ where this page comes from
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms