GH-CONFIG-GET(1) GitHub CLI manual GH-CONFIG-GET(1)

gh-config-get - Print the value of a given configuration key

gh config get <key> [flags]

Get per-host setting

0: Successful execution

1: Error

2: Command canceled

4: Authentication required

NOTE: Specific commands may have additional exit codes. Refer to the command's help for more information.

$ gh config get git_protocol

gh-config(1)

Jul 2025