Skip to content

Commit 527646d

Browse files
committed
sometimes tags point to other objects
1 parent 540c9ba commit 527646d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

book/11-git-internals/sections/refs.asc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ fatal: Refusing to point HEAD outside of refs/
120120

121121
We just finished discussing Git's three main object types, but there is a fourth.
122122
The tag object is very much like a commit object – it contains a tagger, a date, a message, and a pointer.
123-
The main difference is that a tag object points to a commit rather than a tree.
123+
The main difference is that a tag object generally points to a commit rather than a tree.
124124
It's like a branch reference, but it never moves – it always points to the same commit but gives it a friendlier name.
125125

126126
As discussed in <<_git_basics_chapter>>, there are two types of tags: annotated and lightweight.

0 commit comments

Comments
 (0)