Errata

Learning Git

Errata for Learning Git

Submit your own errata for this product.

The errata list is a list of errors and their corrections that were found after the product was released. If the error was corrected in a later version or reprint the date of the correction will be displayed in the column titled "Date Corrected".

The following errata were submitted by our customers and approved as valid errors by the author or editor.

Color key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update

Version Location Description Submitted By Date submitted Date corrected
Page 7
3rd paragraph

The single sentence of the third paragraph on page 7 ends "then you should continue ono the next section to install an up-to-date version of Git on your computer." That should probably be "... continue on to the next section ..." [continue ono -> continue on to]

Note from the Author or Editor:
Yes, you're absolutely right, we will have to fix this. Thank you for bringing this to our attention! (-:

William Bresler  Aug 09, 2024  Sep 20, 2024
Page 17
[ FOLLOW ALONG 1-14 ]

The Follow Along 1-14 shows the following prompt and command:

$rainbow $ git config --global --list

The initial part of the prompt is meant to be the user's current working directory. Previous Follow Alongs asked the user to create directories 'desktop' and 'rainbow'. Therefore, the '$' before rainbow looks like a minor mistake. The prompt and command should read:

rainbow $ git config --global --list

Note from the Author or Editor:
The reader is right. This is a mistake. It should be changed to:
rainbow $ git config --global --list

William Bresler  Aug 25, 2024  Sep 20, 2024
Page 25
Figure 2-1

Figure 2-1 shows the contents of the '.git' local repository directory immediately after issuing the 'git init -b main' command. The first file is given as '.config'. However, on my system, and in every cloned repo I have examined, the file is 'config', without the initial 'dot'. So, I believe that first file should be 'config' rather than '.config'.

Note from the Author or Editor:
Yes, the reader is right, the file should be config not .config.

William Bresler  Aug 25, 2024  Sep 20, 2024
Page 56
[ NOTE ] at the top of the page

The NOTE begins: "There are times where you can be on a commit ...". Given that the sentence begins "There are times ..." I would expect the subordinating conjunction to reflect a temporal reference rather than a spatial one. Although the sentence is understandable as written, I believe it would be (slightly) better as "There are times when you can be on a commit ..." [where -> when].

(Yes, this is rather picky. No doubt opinions may differ.)

Note from the Author or Editor:
The reader is once again correct. Let's use the correction suggested by the reader.

"There are times when you can be on a commit...."

William Bresler  Aug 25, 2024  Sep 20, 2024
Page 72
1st paragraph of Example Book Project 5-4

The final sentence of the paragraph ends "... once called chapter_five_approach_a and one called chapter_five_approach_b." That should be "... one called chapter_five_approach_a and one called ..." [once -> one]

Note from the Author or Editor:
Yes, the reader is correct, the word "once" should be changed to "one".

William Bresler  Aug 26, 2024  Sep 20, 2024
Page 99, 102, 105
VISUALIZE IT 7-2, 7-3, 7-4

"main" is pointing to the wrong commit. It should point to "Y" to conform with VISUALIZE IT 7-5.

Note from the Author or Editor:
The user is absolutely right. There is a mistake in Visualize It 7-2, Visualize It 7-3, and Visualize It 7-4. The "main" arrow should point to the "Y" commit. It should conform with what Visualize It 7-1 and Visualize It 7-5 look like. Can we fix this?

Shankha Pal  Feb 19, 2024  Jun 07, 2024
Page 105
Entire page

In the revised printing of the book (Second Release, 2024-06-07) page 105 is missing. In its place is a duplicate of page 102. (Page 106 overleaf is OK.) It looks like this printing production error was made in the preparation of the edition that corrected an earlier error. Please explain how to get access to the missing page.

Note from the Author or Editor:
Hi O'Reilly team can we take a look into this. I have not received a print version of the second release therefore I cannot confirm this error. However, I trust the reader is right!

Anonymous  Aug 31, 2024  Sep 20, 2024
Page 117
[ FOLLOW ALONG 8-1 ] step 3

Some of the lines of output from git seem to be out of order.

In the book:

$ git clone <URL>/rainbow-remote.git friend-rainbow
Cloning into 'friend-rainbow'...
remote: Enumerating objects: 9, done.
remote: Counting objects: 100% (9/9), done.
remote: Compressing objects: 100% (4/4), done.
Receiving objects: 100% (9/9), done.
Resolving deltas: 100% (1/1), done.
remote: Total 9 (delta 1), reused 9 (delta 1), pack-reused 0

On my system (using Git for Windows 2.46)

$ git clone <URL>/rainbow-remote.git friend-rainbow
Cloning into 'friend-rainbow'...
remote: Enumerating objects: 9, done.
remote: Counting objects: 100% (9/9), done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 9 (delta 1), reused 9 (delta 1), pack-reused 0 (from 0)
Receiving objects: 100% (9/9), done.
Resolving deltas: 100% (1/1), done.

Note that the book's version has "remote: Total 9 (delta 1), reused 9 (delta 1), pack-reused 0" *after* the "Receiving objects" and Resolving deltas" lines whereas on my system all of the "remote: ---" lines are together.

I suppose this could be a change in git's output from my more recent version, but I see a similar issue a few pages later. (See my next errata submission.) Maybe someone can run the command again and reorder the output lines if appropriate.

Note: I had to truncate the URL in the git clone command since this web site does not allow them to be present in errata submissions.

Note from the Author or Editor:
The readers is correct. Please fix as they have described.

William Bresler  Aug 26, 2024  Sep 20, 2024
Page 122
2nd paragraph after the heading "THE ORIGIN SHORTNAME"

The last sentence of the paragraph begins:

At the time of cloning the remote repository URL was associated with a shortname in the local repository, ...

It would help readability by adding a comma after "At the time of cloning". Otherwise, "the remote repository URL" is likely to be taken as the direct object of the participle "cloning" which then leads to an inability to parse "was associated ...". This forces the reader to backtrack and try to parse the sentence again. Using a comma to mark off the initial temporal adverbial phrase allows the reader to treat "the remote repository URL" as the sentence's subject and smoothly parse the remainder of the sentence.

(Yes, I am being picky again. However, if I had a problem with this sentence, it is highly likely that other readers have had a similar experience.)

Note from the Author or Editor:
The reader is right, let's fix this as they recommended.

William Bresler  Aug 26, 2024  Sep 20, 2024
Page 202
Example Book Project 11-2

The first sentence begins: "Suppose I work on chapters 1, 2, and 3, of my book, ..." I would say there is an extraneous comma after '3' so I would suggest changing it to "Suppose I work on chapters 1, 2, and 3 of my book, ..." See the next sentence for a similar phrasing which does not have the extra comma.

Note from the Author or Editor:
Let's change this as well as the reader recommends.

William Bresler  Aug 29, 2024  Sep 20, 2024
Page 238
first paragraph of Example Book Project 12-2

The paragraph begins: "InExample Book Project 12-11, ...". That should be "In Example Book Project 12-11, ..." [InExample -> In Example].

Yes, trivial, but if someone is going to update the text at all they might as well update such trivialities.

Note from the Author or Editor:
The reader is right, let's fix this.

William Bresler  Aug 30, 2024  Sep 20, 2024