Skip to content

Commit e23cb1c

Browse files
committed
various backported errata
1 parent 87cdfb8 commit e23cb1c

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

book/05-distributed-git/sections/contributing.asc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ Fast forward
267267
2 files changed, 6 insertions(+), 1 deletions(-)
268268
-----
269269

270-
No problems occur; as you can see it, was a simple fast-forward.
270+
No problems occur; as you can see it was a simple fast-forward.
271271
Now Jessica merges in John's work (`origin/master`):
272272

273273
[source,console]
@@ -453,12 +453,12 @@ Jessica wants to tweak something, so she commits again and then pushes this back
453453
[source,console]
454454
-----
455455
$ git commit -am 'small tweak'
456-
[featureA ed774b3] small tweak
456+
[featureA 774b3ed] small tweak
457457
1 files changed, 1 insertions(+), 1 deletions(-)
458458
$ git push
459459
...
460460
To jessica@githost:simplegit.git
461-
3300904..ed774b3 featureA -> featureA
461+
3300904..774b3ed featureA -> featureA
462462
-----
463463

464464
Jessica's commit history now looks something like this:

book/07-git-tools/sections/rewriting-history.asc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ When you save and exit the editor, Git rewinds your branch to the parent of thes
164164
You effectively change the order of those commits and remove the ``added cat-file'' commit completely.
165165

166166
[[_squashing]]
167-
==== Squashing a Commit
167+
==== Squashing Commits
168168

169169
It’s also possible to take a series of commits and squash them down into a single commit with the interactive rebasing tool.
170170
The script puts helpful instructions in the rebase message:

book/07-git-tools/sections/stashing-cleaning.asc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ Saved working directory and index state WIP on master: 1b65b17 added the index f
181181

182182
==== Un-applying a Stash
183183

184-
In some use case scenarios you might want to apply stashed changes, do some work, but then un-apply those changes that originally came form the stash.
184+
In some use case scenarios you might want to apply stashed changes, do some work, but then un-apply those changes that originally came from the stash.
185185
Git does not provide such a `stash unapply` command, but it is possible to achieve the effect by simply retrieving the patch associated with a stash and applying it in reverse:
186186

187187
[source,console]

book/08-customizing-git/sections/attributes.asc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ Git successfully and succinctly tells me that I added the string ``Testing: 1, 2
110110
It's not perfect – formatting changes wouldn't show up here – but it certainly works.
111111

112112
Another interesting problem you can solve this way involves diffing image files.
113-
One way to do this is to run JPEG files through a filter that extracts their EXIF information – metadata that is recorded with most image formats.
113+
One way to do this is to run image files through a filter that extracts their EXIF information – metadata that is recorded with most image formats.
114114
If you download and install the `exiftool` program, you can use it to convert your images into text about the metadata, so at least the diff will show you a textual representation of any changes that happened:
115115

116116
[source,console]
@@ -168,8 +168,8 @@ The next time you check out this file, Git injects the SHA of the blob:
168168

169169
[source,console]
170170
----
171-
$ rm text.txt
172-
$ git checkout -- text.txt
171+
$ rm test.txt
172+
$ git checkout -- test.txt
173173
$ cat test.txt
174174
$Id: 42812b7653c7b88933f8a9d6cad0ca16714b9bb3 $
175175
----

book/08-customizing-git/sections/policy.asc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ Now your users can't push any commits with badly formed messages or with modifie
216216

217217
===== Testing It Out
218218

219-
If you run `chmod u+x .git/hooks/update`, which is the file you into which you should have put all this code, and then try to push a commit with a non-compliant message, you get something like this:
219+
If you run `chmod u+x .git/hooks/update`, which is the file into which you should have put all this code, and then try to push a commit with a non-compliant message, you get something like this:
220220

221221
[source,console]
222222
----

0 commit comments

Comments
 (0)