Skip to content

Instantly share code, notes, and snippets.

@pomadchin
Created August 1, 2021 15:53
Show Gist options
  • Save pomadchin/7a207c90f3219b0da62a3f55113d46a1 to your computer and use it in GitHub Desktop.
Save pomadchin/7a207c90f3219b0da62a3f55113d46a1 to your computer and use it in GitHub Desktop.
function git-tag-rename() {
git tag $2 $1
git tag -d $1
git push origin :refs/tags/$1
git push --tags
}
for tag in $(git tag); do
git-tag-rename "$tag" "v$tag"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment