snippetbashTip
gh config — Change configuration for GitHub CLI. More information: <https://cli.github.com/manual/gh_config>.
Viewed 0 times
configurationcommandgh configgithubclichangefor
Problem
How to use the
gh config command: Change configuration for GitHub CLI. More information: <https://cli.github.com/manual/gh_config>.Solution
gh config — Change configuration for GitHub CLI. More information: <https://cli.github.com/manual/gh_config>.Display what Git protocol is being used:
gh config get git_protocolSet protocol to SSH:
gh config set git_protocol sshUse
delta in side-by-side mode as the default pager for all gh commands:gh config set pager 'delta --side-by-side'Set text editor to Vim:
gh config set editor {{vim}}Reset to default text editor:
gh config set editor ""Disable interactive prompts:
gh config set prompt {{disabled}}Set a specific configuration value:
gh config set {{key}} {{value}}Code Snippets
Display what Git protocol is being used
gh config get git_protocolSet protocol to SSH
gh config set git_protocol sshUse `delta` in side-by-side mode as the default pager for all `gh` commands
gh config set pager 'delta --side-by-side'Set text editor to Vim
gh config set editor {{vim}}Reset to default text editor
gh config set editor ""Context
tldr-pages: common/gh config
Revisions (0)
No revisions yet.