Skip to content

Commit 5d37cc7

Browse files
author
Matthew McCullough
committed
Merge pull request #57 from randomecho/pronoun-wash
Remove pronoun I from voice for lack of lone addressor
2 parents 8a8bab3 + cdc6f3d commit 5d37cc7

File tree

5 files changed

+68
-70
lines changed

5 files changed

+68
-70
lines changed

basic/index.html

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,8 @@ <h2>
140140
<div class="block">
141141
<p>As you saw in the <code>git add</code> section, in order to see what the
142142
status of your staging area is compared to the code in your working
143-
directory, you can run the <code>git status</code> command. I demonstrated
144-
using it with the <code>-s</code> option, which gives you short output.
143+
directory, you can run the <code>git status</code> command. Using the
144+
<code>-s</code> option will give you short output.
145145
Without that flag, the <code>git status</code> command will give you more
146146
context and hints. Here is the same status output with and without the
147147
<code>-s</code>. The short output looks like this:
@@ -572,7 +572,7 @@ <h4>
572572
<p>Notice how if you don't stage any changes and then run
573573
<code>git commit</code>, Git will simply give you the output of the
574574
<code>git status</code> command, reminding you that nothing is staged.
575-
I've highlighted the important part of that message, saying that nothing
575+
The important part of that message has been highlighted, saying that nothing
576576
is added to be committed. If you use <code>-a</code>, it will add and
577577
commit everything at once.
578578
</p>
@@ -605,31 +605,29 @@ <h2>
605605

606606
<div class="block">
607607
<p><code>git reset</code> is probably the most confusing command written
608-
by humans. I've been using Git for years, even wrote a book on it and I
609-
still get confused by what it is going to do at times. So, I'll just
610-
tell you the three specific invocations of it that are generally
611-
helpful and ask you to blindly use it as I do - because it can be
612-
very useful.
608+
by humans, but it can be very useful when you get the hang of it.
609+
There are three specific invocations of it that are generally
610+
helpful.
613611
</p>
614612

615613
<h4>
616614
git reset HEAD
617615
<small>undo the last commit and unstage the files</small>
618616
</h4>
619617

620-
<p>In the first case, we can use it to unstage something that you have
618+
<p>First, you can use it to unstage something that has been
621619
accidentally staged. Let's say that you have modified two files and want
622620
to record them into two different commits. You should stage and commit
623621
one, then stage and commit the other. If you accidentally stage both of
624622
them, how do you <i>un-</i>stage one? You do it with
625-
<code>git reset HEAD -- file</code>. Technically here you don't have to
623+
<code>git reset HEAD -- file</code>. Technically you don't have to
626624
add the <code>--</code> - it is used to tell Git when you have stopped
627625
listing options and are now listing file paths, but it's probably good to
628626
get into the habit of using it to separate options from paths even if you
629627
don't need to.
630628
</p>
631629

632-
<p>So, let's see what it looks like to unstage something. Here we have
630+
<p>Let's see what it looks like to unstage something. Here we have
633631
two files that have been modified since our last commit. We will stage
634632
both, then unstage one of them.</p>
635633

@@ -782,7 +780,7 @@ <h2>
782780

783781
<p><code>git rm</code> will remove entries from the staging area.
784782
This is a bit different from <code>git reset HEAD</code> which "unstages"
785-
files. By "unstage" I mean it reverts the staging area to what was
783+
files. To "unstage" means it reverts the staging area to what was
786784
there before we started modifying things. <code>git rm</code> on the
787785
other hand just kicks the file off the stage entirely, so that it's not
788786
included in the next commit snapshot, thereby effectively deleting it.</p>
@@ -810,10 +808,10 @@ <h4>
810808
</p>
811809

812810
<p class="aside">
813-
I personally don't use this command that much in it's normal form - to
814-
delete files. It's often easier to just remove the files off your disk and
815-
then run a <code>git commit -a</code>, which will automatically remove them
816-
from your index, too.</p>
811+
In its normal form the command is used to delete files.
812+
But it's often easier to just remove the files off your disk and
813+
then run <code>git commit -a</code>, which will also automatically remove
814+
them from your index.</p>
817815

818816
<p class="nutshell">
819817
<strong>In a nutshell</strong>,

branching/index.html

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ <h2>
1010
Branching and Merging
1111
</h2>
1212
<div class="block">
13-
<p>Branching in Git is one of my favorite features. If you have used other
13+
<p>Branching in Git is one of its many great features. If you have used other
1414
version control systems, it's probably helpful to forget most of what you
1515
think about branches - in fact, it may be more helpful to think of them
1616
practically as <i>contexts</i> since that is how you will most often be
@@ -319,7 +319,7 @@ <h4>
319319
</pre>
320320

321321
<p>So first we're going to create a new branch named 'change_class' and
322-
switch to it so your class renaming changes are isolated. I'm going to
322+
switch to it so your class renaming changes are isolated. We're going to
323323
change each instance of 'HelloWorld' to 'HiWorld'.</p>
324324

325325
<pre>
@@ -333,9 +333,9 @@ <h4>
333333
1 files changed, 2 insertions(+), 4 deletions(-)
334334
</pre>
335335

336-
<p>So now I've committed the class renaming changes to the 'change_class'
337-
branch. If I now switch back to the 'master' branch my class name will
338-
revert to what it was before I switched branches. Here I can change
336+
<p>So now we've committed the class renaming changes to the 'change_class'
337+
branch. To switch back to the 'master' branch the class name will
338+
revert to what it was before we switched branches. Here we can change
339339
something different (in this case the printed output) and at the same
340340
time rename the file from <code>hello.rb</code> to <code>ruby.rb</code>.
341341
</p>
@@ -365,10 +365,10 @@ <h4>
365365
rename hello.rb => ruby.rb (65%)
366366
</pre>
367367

368-
<p>Now those changes are recorded in my 'master' branch. Notice that the
369-
class name is back to 'HelloWorld', not 'HiWorld'. Now I want to
370-
incorporate the 'HiWorld' change so I can just merge in my 'change_class'
371-
branch. However, I've changed the name of the file since I branched,
368+
<p>Now those changes are recorded in the 'master' branch. Notice that the
369+
class name is back to 'HelloWorld', not 'HiWorld'. To incorporate
370+
the 'HiWorld' change we can just merge in the 'change_class'
371+
branch. However, the name of the file has changed since we branched,
372372
what will Git do?</p>
373373

374374
<pre>
@@ -391,7 +391,7 @@ <h4>
391391
HiWorld.hello
392392
</pre>
393393

394-
<p>Well, it will just figure it out. Notice that I had no merge conflicts
394+
<p>Well, it will just figure it out. Notice that there are no merge conflicts
395395
and the file that had been renamed now has the 'HiWorld' class name change
396396
that was done in the other branch. Pretty cool.</p>
397397

@@ -474,9 +474,9 @@ <h4>
474474

475475
<p>A cool tip in doing merge conflict resolution in Git is that if you
476476
run <code>git diff</code>, it will show you both sides of the conflict
477-
and how you've resolved it as I've shown here. Now it's time to mark
477+
and how you've resolved it as shown here. Now it's time to mark
478478
the file as resolved. In Git we do that with <code>git add</code> -
479-
to tell Git the file has been resolved, you have to stage it.</p>
479+
to tell Git the file has been resolved you have to stage it.</p>
480480

481481
<pre>
482482
<b>$ git status -s</b>
@@ -684,7 +684,7 @@ <h2>
684684
</pre>
685685

686686
<p>This way, it's pretty easy to see that we have Haskell code included in
687-
the branch (as I've highlighted). What is even cooler is that we can
687+
the branch (highlighted in the output). What is even cooler is that we can
688688
easily tell Git that we only are interested in the commits that are
689689
reachable in one branch that are not reachable in another, in other words
690690
which commits are unique to a branch in comparison to another.
@@ -751,7 +751,7 @@ <h2>
751751
tag", which allows you to add a tag message to it, which is what you almost
752752
always want to do. Running this without the <code>-a</code> works too, but
753753
it doesn't record when it was tagged, who tagged it, or let you add a tag
754-
message. I would recommend always creating annotated tags.</p>
754+
message. It's recommended you always create annotated tags.</p>
755755

756756
<pre>
757757
<b>$ git tag -a v1.0 </b>

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<h2>Introduction to the Git Reference</h2>
66
<div class="block">
77
<p>
8-
This is the Git reference site. This is meant to be a quick
8+
This is the Git reference site. It is meant to be a quick
99
reference for learning and remembering the most important and
1010
commonly used Git commands. The commands are organized into
1111
sections of the type of operation you may be trying to do, and
@@ -28,7 +28,7 @@ <h2>Introduction to the Git Reference</h2>
2828
<h2>How to Think Like Git</h2>
2929
<div class="block">
3030
<p>
31-
The first thing that is important to understand about Git is
31+
The first important thing to understand about Git is
3232
that it thinks about version control very differently than
3333
Subversion or Perforce or whatever SCM you may be used to. It
3434
is often easier to learn Git by trying to forget your assumptions

inspect/index.html

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ <h4>
5757
you can use the <code>--author</code> option. For example, let's say we're
5858
looking for the commits in the Git source code done by Linus. We would
5959
type something like <code>git log --author=Linus</code>. The search is
60-
case sensitive and also will search the email address. I'll do the
61-
example using the <code>-[number]</code> option, which will limit the
60+
case sensitive and will also search the email address. The following
61+
example will use the <code>-[number]</code> option, which will limit the
6262
results to the last [number] commits.
6363
</p>
6464

@@ -78,11 +78,11 @@ <h4>
7878

7979
<p>
8080
If you want to specify a date range that you're interested in filtering your
81-
commits down to, you can use a number of options - I use <code>--since</code>
82-
and <code>--before</code>, but you can also use <code>--until</code> and
83-
<code>--after</code>. For example, if I wanted to see all the commits in
84-
the Git project before 3 weeks ago but after April 18th, I could run this
85-
(I'm also going to use <code>--no-merges</code> to remove merge commits):
81+
commits down to, you can use a number of options such as <code>--since</code>
82+
and <code>--before</code>, or you can also use <code>--until</code> and
83+
<code>--after</code>. For example, to see all the commits in
84+
the Git project before three weeks ago but after April 18th, you could run this
85+
(We're also going to use <code>--no-merges</code> to remove merge commits):
8686
</p>
8787

8888
<pre>
@@ -105,9 +105,9 @@ <h4>
105105

106106
<p>
107107
You may also want to look for commits with a certain phrase in the commit
108-
message. You can use <code>--grep</code> for that. Let's say I knew there
108+
message. Use <code>--grep</code> for that. Let's say there
109109
was a commit that dealt with using the P4EDITOR environment variable and
110-
I wanted to remember what that change looked like - I could find the commit
110+
you wanted to remember what that change looked like - you could find the commit
111111
with <code>--grep</code>.
112112
</p>
113113

@@ -132,11 +132,11 @@ <h4>
132132
arguments. If you want to use <code>--grep</code> and <code>--author</code>
133133
to see commits that were authored by someone AND have a specific message
134134
content, you have to add the <code>--all-match</code> option. In these
135-
examples, I'm going to use the <code>--format</code> option, so we can see
135+
examples we're going to use the <code>--format</code> option, so we can see
136136
who the author of each commit was.
137137
</p>
138138

139-
<p>If I look for the commit messages with 'p4 depo' in them, I get these
139+
<p>If we look for the commit messages with 'p4 depo' in them, we get these
140140
three commits:</p>
141141

142142
<pre>
@@ -146,8 +146,8 @@ <h4>
146146
1cd5738 Simon Hausmann Make incremental imports easier to use by storing the p4 d
147147
</pre>
148148

149-
<p>If I add a <code>--author=Hausmann</code> argument, instead of further
150-
filtering it down to the one commit by Simon, it instead will show me all
149+
<p>If we add a <code>--author=Hausmann</code> argument, instead of further
150+
filtering it down to the one commit by Simon, it instead will show all
151151
commits by Simon OR commits with "p4 depo" in the message:</p>
152152

153153
<pre>
@@ -167,7 +167,7 @@ <h4>
167167
...
168168
</pre>
169169

170-
<p>However, if I add a <code>--all-match</code>, I get the results I'm
170+
<p>However, adding <code>--all-match</code> will get the results you're
171171
looking for:</p>
172172

173173
<pre>
@@ -417,7 +417,7 @@ <h2>
417417

418418
<p>That's what we're looking for, but we don't want to have to figure out
419419
what commit the two branches diverged from every time. Luckily, Git has a
420-
shortcut for this. If you run <code>git diff master...erlang</code> (with
420+
shortcut for this. If you run <code>git diff master...erlang</code> (with
421421
three dots in between the branch names), Git will automatically figure out
422422
what the common commit (otherwise known as the "merge base") of the two
423423
commit is and do the diff off of that.</p>
@@ -438,7 +438,7 @@ <h2>
438438
the triple-dot syntax, because it will almost always give you what you want.
439439
</p>
440440

441-
<p>As a bit of an aside, you can also have git manually calculate the
441+
<p>As a bit of an aside, you can also have Git manually calculate what the
442442
merge-base (first common ancestor commit) of any two commits would be with
443443
the <code>git merge-base</code> command:</p>
444444

@@ -447,7 +447,7 @@ <h2>
447447
8d585ea6faf99facd39b55d6f6a3b3f481ad0d3d
448448
</pre>
449449

450-
<p>So, you can do the equivalent of <code>git diff master...erlang</code>
450+
<p>You can do the equivalent of <code>git diff master...erlang</code>
451451
by running this:</p>
452452

453453
<pre>
@@ -457,7 +457,7 @@ <h2>
457457
2 files changed, 9 insertions(+), 0 deletions(-)
458458
</pre>
459459

460-
<p>I would of course recommend using the easier syntax, though.</p>
460+
<p>You may prefer using the easier syntax though.</p>
461461

462462

463463
<p class="nutshell">

remotes/index.html

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ <h4>
100100
adds <code>[url]</code> under a local remote named <code>[alias]</code>.</p>
101101

102102
<p>For example, if we want to share our Hello World program with the world,
103-
we can create a new repository on a server (I'll use GitHub as an example),
103+
we can create a new repository on a server (Using GitHub as an example),
104104
which should give you a URL, in this case "[email protected]:schacon/hw.git".
105105
To add that to our project so we can push to it and fetch updates from it
106106
we would do this:</p>
@@ -117,8 +117,8 @@ <h4>
117117
has no special meaning but is widely used because <code>git init</code>
118118
sets it up by default, 'origin' is often used as a remote name because
119119
<code>git clone</code> sets it up by default as the cloned-from URL. In
120-
this case I've decided to name my remote 'github', but I could have really
121-
named it just about anything.
120+
this case we'll name the remote 'github', but you could name it just
121+
about anything.
122122
</p>
123123

124124
<h4>
@@ -266,20 +266,20 @@ <h2>
266266
<p>The second command that will fetch down new data from a remote server is
267267
<code>git pull</code>. This command will basically run a <code>git fetch</code>
268268
immediately followed by a <code>git merge</code> of the branch on that remote
269-
that is tracked by whatever branch you are currently in. I personally don't much
270-
like this command - I prefer running <code>fetch</code> and <code>merge</code>
271-
separately. Less magic, less problems. However, if you like this idea, you
272-
can read about it in more detail in the
269+
that is tracked by whatever branch you are currently in. Running the
270+
<code>fetch</code> and <code>merge</code> commands separately involves less magic
271+
and less problems, but if you like the idea of <code>pull</code>, you can
272+
read about it in more detail in the
273273
<a target="new" href="http://git-scm.com/docs/git-pull">official docs</a>.
274274
</p>
275275

276276
<p>Assuming you have a remote all set up and you want to pull in updates, you
277277
would first run <code>git fetch [alias]</code> to tell Git to fetch down all the
278278
data it has that you do not, then you would run <code>git merge [alias]/[branch]</code>
279279
to merge into your current branch anything new you see on the server
280-
(like if someone else has pushed in the meantime). So, if I were working on my
281-
Hello World project with several other people and I wanted to bring in any changes
282-
that had been pushed since I last connected, I would do something like this:</p>
280+
(like if someone else has pushed in the meantime). So, if you were working on a
281+
Hello World project with several other people and wanted to bring in any changes
282+
that had been pushed since we last connected, we would do something like this:</p>
283283

284284
<pre>
285285
<b>$ git fetch github</b>
@@ -296,17 +296,17 @@ <h2>
296296
* [new branch] lisp -> github/lisp
297297
</pre>
298298

299-
<p>I can see that since the last time I synchronized with this remote, five branches
299+
<p>Here we can see that since we last synchronized with this remote, five branches
300300
have been added or updated. The 'ada' and 'lisp' branches are new, where the
301-
'master', 'c-langs' and 'java' branches have been updated. In this case, my team
302-
is pushing proposed updates to remote branches for review before they're merged
303-
into 'master'.
301+
'master', 'c-langs' and 'java' branches have been updated. In our example case,
302+
other developers are pushing proposed updates to remote branches for review before
303+
they're merged into 'master'.
304304
</p>
305305

306306
<p>You can see the mapping that Git makes. The 'master' branch on the remote
307-
repository becomes a branch named 'github/master' locally. That way now I can
308-
merge the 'master' branch on that remote into my local 'master' branch by running
309-
<code>git merge github/master</code>. Or, I can see what new commits are on that
307+
repository becomes a branch named 'github/master' locally. That way you can
308+
merge the 'master' branch on that remote into the local 'master' branch by running
309+
<code>git merge github/master</code>. Or, you can see what new commits are on that
310310
branch by running <code>git log github/master ^master</code>. If your remote
311311
is named 'origin' it would be <code>origin/master</code> instead. Almost any
312312
command you would run using local branches you can use remote branches with too.
@@ -356,10 +356,10 @@ <h2>
356356
</pre>
357357

358358
<p>Pretty easy. Now if someone clones that repository they will get exactly
359-
what I have committed and all of its history.</p>
359+
what we have committed and all of its history.</p>
360360

361-
<p>What if I have a topic branch like the 'erlang' branch we created earlier
362-
and I just want to share that? You can just push that branch instead.</p>
361+
<p>What if you have a topic branch like the 'erlang' branch created earlier
362+
and want to share just that? You can just push that branch instead.</p>
363363

364364
<pre>
365365
<b>$ git push github erlang</b>

0 commit comments

Comments
 (0)