Created
July 8, 2021 09:26
-
-
Save rfennell/43ff131f443bd2912b4f150e64337692 to your computer and use it in GitHub Desktop.
Move a Git tag to the most recent commit
This file contains 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
param | |
( | |
$tagname, | |
$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