Convert lightweight tags to annotated tags

To convert lightweight tags to annotated tags in Git: 1

#!/bin/bash
 
for tag in `git tag`; do
    date="$(git show $tag^0 -s --format=%aD)"
    GIT_COMMITTER_DATE="$date" git tag -a -f $tag $tag^0
done

Footnotes

  1. 20250504014335