Skip to content

Instantly share code, notes, and snippets.

@MSch
Created June 21, 2011 11:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MSch/1037654 to your computer and use it in GitHub Desktop.
Save MSch/1037654 to your computer and use it in GitHub Desktop.
#!/bin/bash
VERSIONS="0.1 0.10 0.2 0.3 0.4 0.5 0.5b1 0.5b2 0.6 0.7 0.7.1 0.8 0.9"
for V in $VERSIONS
do
echo Checking out $V
git checkout origin/tags/$V
git clean -fd
git checkout .
git clean -fd
git tag v$V
done
echo Push tags
git push origin --tags
for V in $VERSIONS
do
echo Remove local branch tags/$V
git branch -D origin/tags/$V
echo Remove branch tags/$V upstream
git push origin :tags/$V
# This was necessary in testing
echo Sleeping 1 sec to allow github to catch up
sleep 1
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment