Skip to content

Instantly share code, notes, and snippets.

@JacobDorman
Forked from knu/gist:111055
Last active August 29, 2015 14:18
Show Gist options
  • Save JacobDorman/3aaa5bda7df151f0499f to your computer and use it in GitHub Desktop.
Save JacobDorman/3aaa5bda7df151f0499f to your computer and use it in GitHub Desktop.
# Rename tags named foo-bar-#.#.# to v#.#.# and push the tag changes
git tag -l | while read t; do n="v${t##[^[:digit:]]#}"; git tag $n $t; git tag -d $t; git push origin :refs/tags/$t; done && git push --tags
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment