Skip to content

Instantly share code, notes, and snippets.

@viruthagiri
Created February 12, 2015 12:53
Show Gist options
  • Select an option

  • Save viruthagiri/dc818cf363bc978031cc to your computer and use it in GitHub Desktop.

Select an option

Save viruthagiri/dc818cf363bc978031cc to your computer and use it in GitHub Desktop.
git for-each-ref refs/remotes/tags | cut -d / -f 4- |
while read ref
do
git tag -a "$ref" -m"Tag $ref" "refs/remotes/tags/$ref"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment