Errata
The errata list is a list of errors and their corrections that were found after the product was released.
The following errata were submitted by our customers and have not yet been approved or disproved by the author or editor. They solely represent the opinion of the customer.
Color Key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update
Version | Location | Description | Submitted by | Date submitted |
---|---|---|---|---|
ePub, | Page Chapter 11 Section: Creating an Authoritative Repository |
In chapter 11 of the latest edition of version control with git (the 3rd version, I believe), there is the following paragraph. |
Anonymous | May 17, 2023 |
Chapter 16 Retrieve an Old Version of a File |
# In our example we have replaced the default branch name to main |
Robert Wilkinson | May 19, 2023 | |
Chapter 16 Recovering a Lost Commit |
$ echo bar >> file |
Robert Wilkinson | May 19, 2023 | |
Printed | Page Page 43 Figure 2-7 |
The Figure 2-7, shows tree objects, the top tree object shows tree 49241 but in the brackets it shows the top level directory /tmp/hello and the next tree object shows tree 68aba but shows the directory /tmp/hello/subdir. |
Gautam Bhat | Jun 18, 2023 |
Printed | Page Part II Fundamentals of Git page, Page 53 (not mentioned in printed version, manually calculated) 2nd paragraph |
The git cat-file -p 16b23 mentioned shows the blob filename as "readme.md" which should be named "file". This is because in Pg 50 (manually calculated, page number not mentioned in the printed version), in the final paragraph the example creates a file name named "file" as echo "Hello Git" > file. |
Gautam Bhat | Jun 23, 2023 |
Page xv the last command example before first paragraph |
There is a typo in the comment: |
ZHANG Hongyuan | Aug 25, 2023 | |
O'Reilly learning platform | Page Chapter 4. Commits, Absolute Commit Names example git log output |
The example for the third invocation of the git log command has an output that does not match the requested commit id: |
Jens M. Felderhoff | Dec 21, 2023 |
O'Reilly learning platform | Page Chapter 7: Forms of the git diff Command Figure 7-1. Various file versions that can be compared |
The labels for the files in the upper part of the figure showing the working directory show "file1" for the file with content "quux" and "file2" for the file with content "bar". |
Jens M. Felderhoff | Jan 03, 2024 |
O'Reilly learning platform | Page Chapter 7: Forms of the git diff Command 12th paragraph describing git diff options |
The synopsis of the --word-diff option is wrong it shows an extraneous equals sign before the square bracket around the optional specification: "--word-diff=[=mode]" instead of the correct synopsis |
Jens M. Felderhoff | Jan 04, 2024 |
O'Reilly learning platform | Page Chapter 7: Forms of the git diff Command Figure 7-2. git diff output |
The command at the prompt shows |
Jens M. Felderhoff | Jan 04, 2024 |
O'Reilly learning platform | Page Chapter 9: Altering Commits, rebase Versus merge git log command output before "Figure 9-25. git rebase merge after linearization" |
The command is "git log --oneline --all", however graphical output is shown without the "--graph" option. |
Jens M. Felderhoff | Jan 04, 2024 |
O'Reilly learning platform | Page Chapter 10: The Stash and the Reflog, Use Case: Interrupted Workflow Description of Figure 10-1. Stash concepts |
Files file1, file2, and file3 are popped from stash entry stash@{2}, *not* stash@{0}. |
Jens M. Felderhoff | Jan 05, 2024 |
O'Reilly learning platform | Page Chapter 11. Remote Repositories/Part II: Example Using Remote Repositories/Getting Repository Update Example for refspec exclusion |
The remote names of the example code and the describing text differ. The example commandline reads "git fetch newdev refs/heads/*:refs/remotes/newdev/* ^refs/heads/skip-me", however, the text description says "The preceding code will locally fetch all branches in the repository into remotes/origin but will exclude fetching the branch with the matching name skip-me." |
Jens M. Felderhoff | Jan 08, 2024 |
Printed | Page 9 First code example under "Preparing to Work with Git" |
As you follow along the various commands, the following command... |
Christian Menage | Feb 23, 2024 |
Page 167 Figure 7-2 |
Hi There, |
AI Lingfeng | May 13, 2023 | |
Printed | Page 199 Table 9-1 |
In Table 9-1 "git reset option effects", there are 3 incorrect values for "Yes" or "No" in the first two rows of the table: |
Troy DeJongh | Oct 01, 2023 |