Merge pull request #22 from adamreeve/git-reference
--- Ive added this information in the git commit section, as otherwise people will end up with an incorrect name and email associated with their commits. This fixes issue 21.
This commit is contained in:
commit
4d9f6ed2cf
@ -427,7 +427,17 @@ index 2aabb6e..2ae9ba4 100644
|
|||||||
|
|
||||||
<p>Now that you have staged the content you want to snapshot with the
|
<p>Now that you have staged the content you want to snapshot with the
|
||||||
<code>git add</code> command, you run <code>git commit</code> to actually
|
<code>git add</code> command, you run <code>git commit</code> 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.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<pre>
|
||||||
|
<b>$ git config --global user.name 'Your Name'</b>
|
||||||
|
<b>$ git config --global user.email you@somedomain.com</b>
|
||||||
|
</pre>
|
||||||
|
|
||||||
|
<p>Let's stage and commit all the changes to our
|
||||||
<code>hello.rb</code> file. In this first example, we'll use the
|
<code>hello.rb</code> file. In this first example, we'll use the
|
||||||
<code>-m</code> option to provide the commit message on the command line.
|
<code>-m</code> option to provide the commit message on the command line.
|
||||||
</p>
|
</p>
|
||||||
|
Loading…
Reference in New Issue
Block a user