How to get rid of “would clobber existing tag”

How to get rid of “would clobber existing tag”

You should update your local tags with remote tags:

git fetch --tags -f

Then pull again.

我遇到的情况是,之前有一个tag6.3.1,被人重置过。

6.3.1本来指向commitA,后来被重置到commitB

我同步的是正确版本,6.3.1需要指向commitB.

但是有人错误地回滚了

先删除服务器上错误的tag,

git push v6 -d 6.3.1

然后把本地正确的丢上去

git push v6 6.3.1

原文地址:https://www.cnblogs.com/chucklu/p/14980261.html