package.json
or consider using an npm scope.reference already exists
error when pushing taggit push --force
git push --force
, the git tags and notes referencing the commits that were rewritten are lost.git push origin :[TAG NAME]
, e.g. git push origin :v2.0.0-beta.1
. You can delete tags locally using git tag -d [TAG NAME]
, e.g. git tag -d v2.0.0-beta.1
.git tag [TAG NAME] [COMMIT HASH]
, where [COMMIT HASH]
is the new commit that created the release for the lost tag. E.g. git tag v2.0.0-beta.1 abcdef0
git notes --ref semantic-release add -f -m '{"channels":["beta"]}' v2.0.0-beta.1
. If the release was also published in the default channel (usually master
), then set the first channel to null
, e.g. git notes --ref semantic-release add -f -m '{"channels":[null, "beta"]}'
git push --force origin refs/notes/semantic-release
. The --force
is needed after the rebase. Be careful.