git tag -f v1.0.0 abc1234

Category: Git - Core

git tag -f v1.0.0 abc1234

Force a tag to point at another commit

Moves an existing tag to a new commit, overriding the error a plain git tag would raise. Tags pushed to a shared remote are a contract, so only do this for unpublished or broken tags. If the tag is already pushed, the remote needs a force update.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.