Skip to content

Commit

Permalink
Script to turn release branches into tags
Browse files Browse the repository at this point in the history
  • Loading branch information
derekprior committed Feb 8, 2015
1 parent d50219b commit 1a51976
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions bin/git-release-tag
@@ -0,0 +1,11 @@
#!/bin/bash
git fetch
git fetch --tags

git branch -r | ag origin/release | while read branch; do
tag=`echo $branch | sed 's/origin\/release\//v/'`
echo "BRANCH: $branch, TAG: $tag"
git checkout $branch
git tag $tag
git checkout master
done

0 comments on commit 1a51976

Please sign in to comment.