Skip to content

Instantly share code, notes, and snippets.

@ssoper
Created November 11, 2014 00:57
Show Gist options
  • Save ssoper/cf2313c3a4b51e32f1ff to your computer and use it in GitHub Desktop.
Save ssoper/cf2313c3a4b51e32f1ff to your computer and use it in GitHub Desktop.
Quickly retag your current work, useful for working with CocoaPods
TAG=`git tag | tail -n 1`
git tag -d $TAG
git push origin :$TAG 2>/dev/null || echo "Tag was local, nothing remote to delete"
git tag -a $TAG -m "$TAG" && git push origin $TAG
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment