content

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

meta

tags: git

created:

commit: 2c2416ed