Skip to content

Commit 458aed2

Browse files
authored
Merge pull request #1097 from hydnum/typofix
HEAD~3 is equivalent to HEAD~~~, not HEAD^^^
2 parents 01bc409 + a002993 commit 458aed2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

book/07-git-tools/sections/revision-selection.asc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,11 +264,11 @@ Date: Fri Nov 7 13:47:59 2008 -0500
264264
ignore *.gem
265265
----
266266

267-
This can also be written `HEAD^^^`, which again is the first parent of the first parent of the first parent:
267+
This can also be written `HEAD~~~`, which again is the first parent of the first parent of the first parent:
268268

269269
[source,console]
270270
----
271-
$ git show HEAD^^^
271+
$ git show HEAD~~~
272272
commit 1c3618887afb5fbcbea25b7c013f4e2114448b8d
273273
Author: Tom Preston-Werner <[email protected]>
274274
Date: Fri Nov 7 13:47:59 2008 -0500

0 commit comments

Comments
 (0)