若要 update 一個已經建立的 tag, 需要透過 git tag -f
指令更新
git tag -f TAG_NAME OBJECT_SHA1
git tag -f -a TAG_NAME TAG_NAME^{}
git tag -f -a TAG_NAME NEW_OBJECT_ID
git show-ref -d --tags
If it is a lightweight tag, a refs/tags/TAG_NAME
with tag object ID will be present.
If it is a annotated taf, an additional line containg ^{}
dereference operator will be present.
git show-ref -d --tags TAG_NAME
Git
Written on
October
19th,
2022
by
Borting