Skip to content

Instantly share code, notes, and snippets.

@willread
Created January 26, 2016 21:36
Show Gist options
  • Save willread/bfb12a3259ad713f2c39 to your computer and use it in GitHub Desktop.
Save willread/bfb12a3259ad713f2c39 to your computer and use it in GitHub Desktop.
Remove or recreate git tags
[alias]
detag = "!f() { param=${1}; git tag -d $param; git push origin :refs/tags/$param; }; f"
retag = "!f() { param=${1}; git detag $param; git tag -a $param -m 'Tagging release'; git push --tags; }; f"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment