From 660df2f194f9a46b16acc9c49fe40504913230b0 Mon Sep 17 00:00:00 2001 From: Adam Reeve Date: Fri, 25 Feb 2011 14:29:16 +1300 Subject: [PATCH] Added information about setting user.name and user.email to the commit section --- basic/index.html | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/basic/index.html b/basic/index.html index b7f2304..4f8327b 100644 --- a/basic/index.html +++ b/basic/index.html @@ -427,7 +427,17 @@ index 2aabb6e..2ae9ba4 100644

Now that you have staged the content you want to snapshot with the git add command, you run git commit to actually - record the snapshot. Let's stage and commit all the changes to our + record the snapshot. + Git records your name and email address with every commit you make, + so the first step is to tell Git what these are. +

+ +
+$ git config --global user.name 'Your Name'
+$ git config --global user.email you@somedomain.com
+
+ +

Let's stage and commit all the changes to our hello.rb file. In this first example, we'll use the -m option to provide the commit message on the command line.