From e2d55561f4a13d39458c1fda1ecbbe8fbdde6d76 Mon Sep 17 00:00:00 2001 From: monteiz Date: Wed, 2 Jul 2025 13:14:16 +0200 Subject: [PATCH] docs: use v2.5 consistently in tag usage examples The gittutorial.adoc section explains how tag names can be used anywhere a commit reference is accepted. While the first two examples demonstrated this with the tag `v2.5`, the third one used `HEAD^`, which does not involve the tag and may confuse readers. This commit replaces `HEAD^` with `v2.5` in the third example, so that all three commands consistently demonstrate how a tag can be used as a commit reference. This improves clarity and better aligns with the intent of the section. Signed-off-by: Luca Fagioli Signed-off-by: monteiz --- Documentation/gittutorial.adoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/gittutorial.adoc b/Documentation/gittutorial.adoc index f89ad30cf652b4..d90e5475d979e3 100644 --- a/Documentation/gittutorial.adoc +++ b/Documentation/gittutorial.adoc @@ -525,8 +525,8 @@ names. For example: $ git diff v2.5 HEAD # compare the current HEAD to v2.5 $ git branch stable v2.5 # start a new branch named "stable" based # at v2.5 -$ git reset --hard HEAD^ # reset your current branch and working - # directory to its state at HEAD^ +$ git reset --hard v2.5 # reset your current branch and working + # directory to v2.5 ------------------------------------- Be careful with that last command: in addition to losing any changes