1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 14:42:19 +02:00
tldr/pages/common/gh-config.md
Lena d74e776a9c
pages.*/*: replace {{" "}} with "{{ }}" (#15034)
The latter notation is preferred by the style guide.
2024-12-05 22:57:27 +05:30

32 lines
643 B
Markdown

# 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_protocol`
- Set protocol to SSH:
`gh config set git_protocol {{ssh}}`
- Use `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}}`