![Forrest logo](/images/logo.png)
gh-config:tldr:5aff2
The command "gh config get git_protocol" is used to retrieve the current value of the "git_protocol" configuration property from the GitHub CLI (Command Line Interface).
The "git_protocol" configuration property determines the protocol used for Git operations performed by the GitHub CLI. It can have one of the following three values:
-
"ssh": This value indicates that the SSH protocol should be used for Git operations. This means that Git will use SSH URLs when interacting with remote repositories.
-
"https": This value indicates that the HTTPS protocol should be used for Git operations. Git will use HTTPS URLs for interacting with remote repositories.
-
"auto": This value indicates that the protocol should be automatically determined based on the context. The GitHub CLI will use SSH for operations with private repositories and HTTPS for operations with public repositories.
By running the "gh config get git_protocol" command, you can see the current value of the "git_protocol" property in your GitHub CLI configuration.