Skip to content

Commit 660df2f

Browse files
committed
Added information about setting user.name and user.email to the commit section
1 parent db14629 commit 660df2f

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

basic/index.html

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,17 @@ <h2>
427427

428428
<p>Now that you have staged the content you want to snapshot with the
429429
<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 [email protected]</b>
438+
</pre>
439+
440+
<p>Let's stage and commit all the changes to our
431441
<code>hello.rb</code> file. In this first example, we'll use the
432442
<code>-m</code> option to provide the commit message on the command line.
433443
</p>

0 commit comments

Comments
 (0)