Skip to content

Instantly share code, notes, and snippets.

@frasertweedale
Created July 4, 2013 08:37
Show Gist options
  • Save frasertweedale/5925978 to your computer and use it in GitHub Desktop.
Save frasertweedale/5925978 to your computer and use it in GitHub Desktop.
rename all tags in git repo from "foo-0.1.2" to "v0.1.2"
for TAG in $(git tag); do git tag "v$(echo "$TAG" | cut -d - -f 2)" "$TAG"; git tag -d "$TAG"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment