Skip to content

Instantly share code, notes, and snippets.

@emaxerrno
Created September 4, 2013 16:09
Show Gist options
  • Select an option

  • Save emaxerrno/6439199 to your computer and use it in GitHub Desktop.

Select an option

Save emaxerrno/6439199 to your computer and use it in GitHub Desktop.
$ git for-each-ref refs/remotes/tags | cut -d / -f 4- | grep -v @ | while read tagname; do git tag "$tagname" "tags/$tagname"; git branch -r -d "tags/$tagname"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment