Last active
February 19, 2025 12:19
-
-
Save mpalourdio/790c2604e244dc934612 to your computer and use it in GitHub Desktop.
GIT - convert lightweight tag to annotated tag
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git checkout lightweight | |
git tag -d lightweight | |
GIT_COMMITTER_DATE="$(git show --format=%aD | head -1)" git tag annotated -m 'lightweight to annotated' | |
git push origin :refs/tags/lightweight | |
git push --tags |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment