Created
November 15, 2016 06:08
-
-
Save rek/a3151cc6a1576a7dab6b1e87e635cfed to your computer and use it in GitHub Desktop.
Auto Git Re-Tag a branch
This file contains 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
#!/bin/bash | |
echo '' | |
echo '--------------------------' | |
echo "--RE-TAGGING: ${1}" | |
echo '--------------------------' | |
echo '' | |
git tag -d ${1} | |
git push origin :refs/tags/${1} | |
git tag -a ${1} -m 'Auto-tagged' | |
git push --tags |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment