2025-03-14 21:59:59 -06:00
|
|
|
# gh config
|
|
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
> Change configuration for GitHub CLI.
|
2025-03-14 21:59:59 -06:00
|
|
|
> More information: <https://cli.github.com/manual/gh_config>.
|
|
|
|
|
|
|
|
|
|
- Display what Git protocol is being used:
|
|
|
|
|
|
|
|
|
|
`gh config get git_protocol`
|
|
|
|
|
|
|
|
|
|
- Set protocol to SSH:
|
|
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
`gh config set git_protocol ssh`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Use `delta` in side-by-side mode as the default pager for all `gh` commands:
|
|
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
`gh config set pager 'delta --side-by-side'`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- 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}}`
|