From 306d9f175b5d747ee2249202ddbb608787a787c5 Mon Sep 17 00:00:00 2001 From: William Spanfelner <42092799+Will-1-Am@users.noreply.github.com> Date: Thu, 15 Nov 2018 00:59:36 +0200 Subject: [PATCH] Create git-config description (#26971) * Create git-config description Add git-config description and use examples. * Rename git-config to git-config.md * Rename guide/english/git/git-config.md to guide/english/git/git-config/index.md --- guide/english/git/git-config/index.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 guide/english/git/git-config/index.md diff --git a/guide/english/git/git-config/index.md b/guide/english/git/git-config/index.md new file mode 100644 index 0000000000..abeebf7784 --- /dev/null +++ b/guide/english/git/git-config/index.md @@ -0,0 +1,17 @@ +--- +title: Git Config +--- +## Git Config + +The git-config command allows global options to be retrieved and set for a repository. + +See Git documentation for comprehensive details of this git command. + +### git config --list +Will display the attributes like user name , email address , and others attributed to a git installation. + +### git config --global user.email "123@abc.com" +Changes the user.email to the email address in quotation marks + +### .gitconfig file +Values assigned with the git config command are stored in a hidden file named .gitconfig in the home directory.