Skip to content

Instantly share code, notes, and snippets.

@innovia
Created March 27, 2018 06:53
Show Gist options
  • Save innovia/5949ee5e29aee4d2aabb8cc0da562f0b to your computer and use it in GitHub Desktop.
Save innovia/5949ee5e29aee4d2aabb8cc0da562f0b to your computer and use it in GitHub Desktop.
Update force existing tags
Delete the tag on any remote before you push
git push origin :refs/tags/<tagname>
Replace the tag to reference the most recent commit
git tag -fa <tagname>
Push the tag to the remote origin
git push origin master --tags
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment