Skip to content

Instantly share code, notes, and snippets.

@mpalourdio
Last active February 19, 2025 12:19
Show Gist options
  • Save mpalourdio/790c2604e244dc934612 to your computer and use it in GitHub Desktop.
Save mpalourdio/790c2604e244dc934612 to your computer and use it in GitHub Desktop.
GIT - convert lightweight tag to annotated tag
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