File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -427,7 +427,17 @@ <h2>
427
427
428
428
< p > Now that you have staged the content you want to snapshot with the
429
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
[email protected] </ b >
438
+ </ pre >
439
+
440
+ < p > Let's stage and commit all the changes to our
431
441
< code > hello.rb</ code > file. In this first example, we'll use the
432
442
< code > -m</ code > option to provide the commit message on the command line.
433
443
</ p >
You can’t perform that action at this time.
0 commit comments