Skip to content

Instantly share code, notes, and snippets.

@CocoaBeans
Created January 16, 2013 19:26
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CocoaBeans/4550019 to your computer and use it in GitHub Desktop.
Save CocoaBeans/4550019 to your computer and use it in GitHub Desktop.
Delete a tag from the local git repository and push it to origin
#!/bin/bash #-x
GIT_TAG="${1}"
echo "Deleting remote git tag: ${GIT_TAG}"
git tag -d "${GIT_TAG}"
git push origin ":refs/tags/${GIT_TAG}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment