From 25ca1ccce8eae6e002c20dfae8b8e69fd804602d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Soszy=C5=84ski?= Date: Tue, 27 Oct 2020 11:38:49 +0100 Subject: [PATCH] gh-config: add page (#4837) --- pages/common/gh-config.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 pages/common/gh-config.md diff --git a/pages/common/gh-config.md b/pages/common/gh-config.md new file mode 100644 index 0000000000..8d6e696d2d --- /dev/null +++ b/pages/common/gh-config.md @@ -0,0 +1,28 @@ +# gh config + +> Change configuration for GitHub cli. +> More information: . + +- 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}}`