Last active
October 9, 2018 23:18
-
-
Save FlorianWendelborn/5931e4cfaf9997f17f923adc1e7b331a to your computer and use it in GitHub Desktop.
Adds a prefix/suffix to all existing git tags.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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