Editing tag reference on Github release
Posted under github tag release git onTo release my stretchly app I use Github releases. And my workflow is similar to this:
- create feature branch and PR for that branch
- make draft release and upload executables there
- test executables
- merge PR
- publish release
Two last steps should be in sequence, as Github's release mechanism will use master as reference for the new tag it's about to create.
But today I somehow messed up and I released version before merging it first. (Nope, I don't have CI do this for me, yet.)
If you go ahead and try to edit the release, all Github let you do is edit tag name, description and so on, but not the tag reference. But as it turns out, and it always turns out that way, the fix is pretty simple with good old command line.
git fetch origin
to fetch tag from Githubgit push origin :refs/tags/<tagname>
to delete the tag from github
Now your release is in draft stage again and you can edit the tag reference.
Did you enjoy this? Copy-paste the link from the address bar to your favourite social network to share. Subscribe here.
comments powered by Disqus