Added information about setting user.name and user.email to the commit section
Adam Reeve committed
Feb 25, 2011 at 14:29 UTC
660df2f194f9a46b16acc9c49fe40504913230b0
1 file changed
+11
-1
basic/index.html
+11
-1
@@ -427,7 +427,17 @@ index 2aabb6e..2ae9ba4 100644
427
428
<p>Now that you have staged the content you want to snapshot with the
429
<code>git add</code> command, you run <code>git commit</code> to actually
430
- record the snapshot. Let's stage and commit all the changes to our
430
+ record the snapshot.
431
+ Git records your name and email address with every commit you make,
432
+ so the first step is to tell Git what these are.
433
+ </p>
434
+
435
+<pre>
436
+<b>$ git config --global user.name 'Your Name'</b>
437
+<b>$ git config --global user.email you@somedomain.com</b>
438
+</pre>
439
+
440
+ <p>Let's stage and commit all the changes to our
441
<code>hello.rb</code> file. In this first example, we'll use the
442
<code>-m</code> option to provide the commit message on the command line.
443
</p>