Skip to content

Instantly share code, notes, and snippets.

View wiyarmir's full-sized avatar
:shipit:
🚢

Guillermo Orellana wiyarmir

:shipit:
🚢
View GitHub Profile
@knu
knu / gist:111055
Created May 13, 2009 14:38
How to mass-rename tags and push them with Git
# Rename tags named foo-bar-#.#.# to v#.#.# and push the tag changes
git tag -l | while read t; do n="v${t##*-}"; git tag $n $t; git push --tags ; git tag -d $t; git push origin :refs/tags/$t ; done