Created
May 21, 2010 00:06
-
-
Save obeattie/408307 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for branch in $(git branch -a | awk '{ print $NF }' | awk '/^tags\// { print $1 }'); do | |
tag=$(echo $branch | cut -f 2- -d /); | |
# create the tag | |
git checkout $branch; | |
git tag -a -m "Tagging svn tag $tag." $tag; | |
git checkout master; | |
# delete the branch | |
git branch -rD $branch; | |
done; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment