Skip to content

Commit fdb68d7

Browse files
authored
Merge pull request #1507 from tfiers/patch-1
2 parents 7830394 + 73d65ac commit fdb68d7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

book/01-introduction/sections/what-is-git.asc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[[_what_is_git]]
1+
[[what_is_git_section]]
22
=== What is Git?
33

44
So, what is Git in a nutshell?

book/03-git-branching/sections/nutshell.asc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33

44
To really understand the way Git does branching, we need to take a step back and examine how Git stores its data.
55

6-
As you may remember from <<ch01-getting-started#_what_is_git>>, Git doesn't store data as a series of changesets or differences, but instead as a series of _snapshots_.
6+
As you may remember from <<ch01-getting-started#what_is_git_section>>, Git doesn't store data as a series of changesets or differences, but instead as a series of _snapshots_.
77

88
When you make a commit, Git stores a commit object that contains a pointer to the snapshot of the content you staged.
99
This object also contains the author's name and email address, the message that you typed, and pointers to the commit or commits that directly came before this commit (its parent or parents): zero parents for the initial commit, one parent for a normal commit, and multiple parents for a commit that results from a merge of two or more branches.
1010

1111
To visualize this, let's assume that you have a directory containing three files, and you stage them all and commit.
12-
Staging the files computes a checksum for each one (the SHA-1 hash we mentioned in <<ch01-getting-started#_what_is_git>>), stores that version of the file in the Git repository (Git refers to them as _blobs_), and adds that checksum to the staging area:
12+
Staging the files computes a checksum for each one (the SHA-1 hash we mentioned in <<ch01-getting-started#what_is_git_section>>), stores that version of the file in the Git repository (Git refers to them as _blobs_), and adds that checksum to the staging area:
1313

1414
[source,console]
1515
----

0 commit comments

Comments
 (0)