From 7bfaee47dc92c643ffa4542f1f6a5f0a3ee48c04 Mon Sep 17 00:00:00 2001 From: Brent Beer Date: Mon, 2 Feb 2015 15:14:15 -0800 Subject: [PATCH 1/2] all config settings need to start global as our first time working through some commands, we can't just set the options without a flag. If we were already in a repository, this would work but we wont get to that until further into the class. --- intermediate/index.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/intermediate/index.md b/intermediate/index.md index 26cef69f6..744cfb41d 100644 --- a/intermediate/index.md +++ b/intermediate/index.md @@ -40,8 +40,8 @@ Establish important and useful settings for efficient command line use. --- ``` -git config user.name "Your Name" -git config user.email "Email Address" +git config --global user.name "Your Name" +git config --global user.email "Email Address" ``` --- @@ -49,8 +49,8 @@ git config user.email "Email Address" --- ```bash -git config color.ui auto -git config core.autocrlf [input|true] +git config --global color.ui auto +git config --global core.autocrlf [input|true] ``` --- @@ -58,7 +58,7 @@ git config core.autocrlf [input|true] --- ```bash -git config core.editor +git config --global core.editor ``` --- From bd5c94445742da2b13783112fef3fc812c543dd2 Mon Sep 17 00:00:00 2001 From: Brent Beer Date: Tue, 17 Feb 2015 11:00:10 -0800 Subject: [PATCH 2/2] add the last global flags --- intermediate/index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/intermediate/index.md b/intermediate/index.md index 744cfb41d..cc3ceb63c 100644 --- a/intermediate/index.md +++ b/intermediate/index.md @@ -84,10 +84,10 @@ These are the very first Git elements often suggested to set. If not set, Git wi To see the current settings, individually query two configuration values: ```shell -$ git config user.name +$ git config --global user.name Firstname Lastname -$ git config user.email +$ git config --global user.email someaccount@example.com ```