Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Adds a prefix/suffix to all existing git tags.
#!/usr/bin/env bash
PREFIX="versions/my-app/"
SUFFIX=""
git tag -l | while read t; do
NEW_NAME="${PREFIX}${t}${SUFFIX}"
git tag $NEW_NAME $t
git tag -d $t
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.