Skip to content

Instantly share code, notes, and snippets.

@rek
Created November 15, 2016 06:08
Show Gist options
  • Save rek/a3151cc6a1576a7dab6b1e87e635cfed to your computer and use it in GitHub Desktop.
Save rek/a3151cc6a1576a7dab6b1e87e635cfed to your computer and use it in GitHub Desktop.
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