Skip to content

Instantly share code, notes, and snippets.

@dguder
Created July 25, 2013 04:18
Show Gist options
  • Save dguder/6076879 to your computer and use it in GitHub Desktop.
Save dguder/6076879 to your computer and use it in GitHub Desktop.
git for-each-ref refs/remotes/tags --shell --format="r=%(refname:short) t=\${r#tags/}" | while read e; do eval "$e"; git tag -f $t refs/remotes/$r; git branch -d -r $r; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment