Skip to content

Instantly share code, notes, and snippets.

@jamost
Last active January 24, 2017 16:43
Show Gist options
  • Select an option

  • Save jamost/a46497b1982241f234a85c7cd2479267 to your computer and use it in GitHub Desktop.

Select an option

Save jamost/a46497b1982241f234a85c7cd2479267 to your computer and use it in GitHub Desktop.
Move git tags to directory
for TAG in `git tag -l | grep '[tag name, eg., v16]'`; do git tag [directory name]/$TAG $TAG; git tag -d $TAG; git push origin :refs/tags/$TAG; done
git push origin --tags
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment