Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Move a Git tag to the most recent commit
$trunk = 'main'
& git push origin :refs/tags/$tagname
& git tag -fa $tagname -m "Current $tagname release"
& git push origin $trunk --tags
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment