mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00
gh-config: add page (#4837)
This commit is contained in:
parent
ec8f27608d
commit
25ca1ccce8
1 changed files with 28 additions and 0 deletions
28
pages/common/gh-config.md
Normal file
28
pages/common/gh-config.md
Normal file
|
@ -0,0 +1,28 @@
|
|||
# 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}}`
|
||||
|
||||
- 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}}`
|
Loading…
Add table
Reference in a new issue