How to add tags to historical commits in git
Git66
description
View the commit record through git log --pretty=oneline, and add annotated Tags through -a
In Demo, we add tags to 9f62fb0fc3b6,
command
git tag -a v0.9 -m "version v0.9" 9f62fb0fc3b6
parameter
tag : Create, list, delete or verify a tag object signed with GPG -a ,--annotate : Make an unsigned, annotated tag object -m ,--message=<msg> : Use the given tag message. If multiple -m options are given, their values are concatenated as separate paragraphs.