zl程序教程

您现在的位置是:首页 >  其它

当前栏目

How to get rid of “would clobber existing tag”

to of get How TAG existing would
2023-09-11 14:14:17 时间

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