Skip to content

Instantly share code, notes, and snippets.

@alexrqs
Last active February 5, 2020 18:30
Show Gist options
  • Save alexrqs/40d59f8e8f130639ff3a95ccb3a1e83c to your computer and use it in GitHub Desktop.
Save alexrqs/40d59f8e8f130639ff3a95ccb3a1e83c to your computer and use it in GitHub Desktop.
Update github tags with new commits
Create a branch with the tag
	git branch {tagname}-branch {tagname}
	git checkout {tagname}-branch
Include the fix manually if it's just a change ....
	git add .
	git ci -m "Fix included" # or cherry-pick the commit, whatever is easier
	git cherry-pick {num_commit}
Delete and recreate the tag locally
	git tag -d {tagname}
	git tag {tagname}
Delete and recreate the tag remotely
	git push origin :{tagname} # deletes original remote tag
	git push origin {tagname} # creates new remote tag

This is based on https://gist.github.com/739288 thanks to nickfloyd for it

@h2rd
Copy link

h2rd commented Jan 5, 2018

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment