gh config get git_protocol

Category: GitHub CLI

gh config get git_protocol

Read the configured git protocol

Prints the current git_protocol value, either ssh or https. Config lookups check host-specific overrides first, then global settings. Useful in scripts that must branch on the transport gh will use.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.