-
Page 19, Section 2.3.1
The first paragraph after figure 2.13 says "… open the Git GUI tool and select Create New Repository."
This should be "… open the Git GUI tool and select Clone Existing Repository."
-
Page 19, Section 2.3.1
The first paragraph after the Mac notes says "Click in the Clone Existing Repository text box, and type the source URL …"
This should be "In the dialog box, after pressing Clone Existing Repository, type the source URL …."
Page 27, Section 3.2.1
This addition has not been made to any format.
At the end of the first paragraph in this section, add the following sentence:
In practice, these optional arguments are often called switches.
-
Page 30, Section 3.3
The text in the 4th paragraph says "If you press Ctrl-D, the letter F disappears, and all the characters move to the right."
It should say "all the characters to its right move to the left."
-
Page 42, Section 4.4
The commit message in the TRY IT NOW section does not have an exclamation point, but the rest of the text ends the commit message with an exclamation point. This is inconsistent. The text should omit the exclamation. The mistake is in Listing 4.5, Listing 4.6, and the paragraph that starts "Once again" on page 43.
-
Page 45, Section 4.6, Lab Exercise 3
The instruction should read: echo contents > new_file.txt
The warning message mentioned in this exercise will then say "LF will be replaced by CRLF in new_file.txt."
-
Page 51, Section 5.3
The last line of this page says "After you type git gui
, it will appear as in figure 5.8."
It should say "After you type git gui
, it will appear as in figure 5.9."
-
Page 90, Figure 7.21
The figure 7.21 has a few mistakes in it. To match the text, the "Working directory" listing should look like this (adding '#' after 'These are for testing'):
# Add a and b
a=1
b=1
#
# These are for testing
#
echo $a
echo $b
let c=$a+$b
echo $c
The "Staging area" should look like this (removing extra '#' after 'These are for testing'):
# Add a and b
a=1
b=1
# These are for testing
echo $a
echo $b
let c=$a+$b
echo $c
-
Page 96, Section 7.5.1
Exercise 2 of the first section says "Download the zip file named LearnGitMoL_SourceCode.zip from the book's website."
The file name should be LearnGit_SourceCode.zip.
-
Page 133, Section 7.5.1
Immediately before the second TRY IT NOW section, it says "… you can easily re-create it with the error message that Git provides."
Instead of "error message," this should say "delete message."
-
Page 133, Section 7.5.1
In the sentence after Listing 9.4, this sentence says "Notice that you specify the same SHA1 ID from the error message."
Instead of "error message," this should say "delete message."
-
Page 135, Listing 9.6
The title of this listing should be "An error from the git checkout
command", instead of git status
.
-
Page 137, Section 9.5.1
Exercise 3 says "Create a branch off the tag from the first chapter."
It should say "Create a branch off the tag from the previous chapter."
-
Page 137, Section 9.5.2
Exercise 2 references 9.2.7.
It should say 9.2.2.
-
Page 137, Section 9.5.2
Exercise 3 references 9.2.3.
It should say 9.2.1.
-
Page 167, Figure 11.9
The right-hand side of the image showing math.clone1 has a label "remotes/origin/new."
It should say remotes/origin/new_feature. Compare with 11.8, which is labeled correctly.
-
Page 175, Lab Exercise 2
The text says git checkout fixing_readme
. However, this branch may not be available as an earlier TRY IT NOW suggested deleting it.
Replace this with git checkout new_feature
.
-
Page 201, Section 13.2
The 3rd paragraph says "If you need a refresher on merging, review chapter 9."
This should be chapter 10.
-
Page 204, Section 13.3
In the TRY IT NOW, the second paragraph starts "This shortcut command was introduced in chapter 8."
This should say "This shortcut command was introduced in section 9.3.1."
-
Page 217, Listing 14.2
The paragraph after listing 14.2 ends with "… and therefore a push to math.bill isn't allowed."
This should say "… and therefore a push to math.git isn't allowed."
-
Page 223, Listing 14.6
The paragraph after listing 14.6 states "You should be able to confirm that this listing is different from listing 14.5."
This should be listing 14.4.
-
Page 223, Section 14.2.1
The next to last paragraph ends "Another way to picture this is to use the branch diagrams from chapters 8 and 9 …."
This should be chapters 9 and 10.
-
Page 224, Section 14.2.2
The first TRY IT NOW has this sentence immediately before the example git diff HEAD..FETCH
: "… you can ask Git to indicate what is different between these two branches, as you learned in chapter 9."
The end should be chapter 10.
-
Page 248, Section 15.2.1
The second sentence of this section says "You can pass the --all
switch to git log
…"
"git log
" should be "gitk
."
-
Page 250, Section 15.2.2
The second sentence of this section says "This view is going to be the same as what you saw in section 15.1.4 …."
The end should be section 11.1.2.
-
Page 251, Section 15.3.1
In the first sentence, it says "… suppose you wanted to find all the files that contained the word line."
The last part should be "contained the word change."
-
Page 325, Section 19.2.4
The last sentence of the TRY IT NOW says "Figure 19.37 and figure 19.38 show the commit message dialog box after selecting the second commit (for SHA1 ID 2628aff4)."
The end should be "for SHA1 ID f3569d7d."
-
Page 328, Chapter 20 Introduction
In the first paragraph, there is a sentence that says "You've also used git config to create aliases (chapter 15)."
This should be chapter 9.
-
Page 337, Listing 20.7
After listing 20.7, this command is given git -c core.editor=notepad++ --local --edit
.
The Git command is missing the config
command. It should be "git -c core.editor=notepad++ config --local --edit
."