From da4575f3c845452156a76a83d3d89f8fa73fa7e1 Mon Sep 17 00:00:00 2001 From: TheLastGimbus Date: Sat, 24 Oct 2020 19:14:38 +0200 Subject: [PATCH 1/4] Add gh config page --- pages/common/gh-config.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 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 00000000000000..9b2740d7c62eaf --- /dev/null +++ b/pages/common/gh-config.md @@ -0,0 +1,24 @@ +# gh-config + +> Change configuration for GitHub cli. +> More information: . + +- Check what git protocol you are using: + +`gh config get git_protocol` + +- Change protocol to ssh: + +`gh config set git_protocol ssh` + +- Change text editor to vim: + +`gh config set editor vim` + +- Reset to default editor: + +`gh config set editor ""` + +- Disable interactive prompts: + +`gh config set prompt disabled` From 0be6960e034ee14b673fbe9e89f51dc8d6db883b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Soszy=C5=84ski?= Date: Sun, 25 Oct 2020 02:26:09 +0100 Subject: [PATCH 2/4] Apply all suggestions from code review Co-authored-by: Axel Navarro --- pages/common/gh-config.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/pages/common/gh-config.md b/pages/common/gh-config.md index 9b2740d7c62eaf..e21d30180fc271 100644 --- a/pages/common/gh-config.md +++ b/pages/common/gh-config.md @@ -1,24 +1,24 @@ -# gh-config +# gh config > Change configuration for GitHub cli. > More information: . -- Check what git protocol you are using: +- Display what Git protocol is being used: `gh config get git_protocol` -- Change protocol to ssh: +- Set protocol to SSH: -`gh config set git_protocol ssh` +`gh config set git_protocol {{ssh}}` -- Change text editor to vim: +- Set text editor to Vim: -`gh config set editor vim` +`gh config set editor {{vim}}` -- Reset to default editor: +- Reset to default text editor: -`gh config set editor ""` +`gh config set editor {{""}}` - Disable interactive prompts: -`gh config set prompt disabled` +`gh config set prompt {{disabled}}` From 9d51ebd63a4ea29855e191fe291dff5f44bfce19 Mon Sep 17 00:00:00 2001 From: TheLastGimbus Date: Mon, 26 Oct 2020 12:54:12 +0100 Subject: [PATCH 3/4] Add "set key-value" example --- pages/common/gh-config.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pages/common/gh-config.md b/pages/common/gh-config.md index e21d30180fc271..8d6e696d2d7b1b 100644 --- a/pages/common/gh-config.md +++ b/pages/common/gh-config.md @@ -22,3 +22,7 @@ - Disable interactive prompts: `gh config set prompt {{disabled}}` + +- Set a specific configuration value: + +`gh config set {{key}} {{value}}` From a215c9f341d715c7aabd68af8bf57787ddf3da14 Mon Sep 17 00:00:00 2001 From: TheLastGimbus Date: Mon, 26 Oct 2020 23:18:59 +0100 Subject: [PATCH 4/4] Empty commit to re-trigger broken gh action