Guest User

Untitled

a guest
May 26th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. for branch in $(git branch -a | awk '{ print $NF }' | awk '/^tags\// { print $1 }'); do
  2. tag=$(echo $branch | cut -f 2- -d /);
  3. # create the tag
  4. git checkout $branch;
  5. git tag -a -m "Tagging svn tag $tag." $tag;
  6. git checkout master;
  7. # delete the branch
  8. git branch -rD $branch;
  9. done;
Add Comment
Please, Sign In to add comment