Skip to content

Instantly share code, notes, and snippets.

@rek
Created November 15, 2016 06:08
Auto Git Re-Tag a branch
#!/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