From 01d22cdbc9f678e08171e941c70d978e4354e812 Mon Sep 17 00:00:00 2001 From: Matt Watson Date: Fri, 17 Jul 2020 18:40:48 +0100 Subject: [PATCH] git-config: add example for editing in default editor (#4176) Co-authored-by: Starbeamrainbowlabs --- pages/common/git-config.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pages/common/git-config.md b/pages/common/git-config.md index 3f37386d65..088ed969e7 100644 --- a/pages/common/git-config.md +++ b/pages/common/git-config.md @@ -27,3 +27,11 @@ - Revert a global configuration entry to its default value: `git config --global --unset alias.unstage` + +- Edit the git configuration for the current repository in the default editor: + +`git config --edit` + +- Edit the global git configuration in the default editor: + +`git config --global --edit`