如何摆脱“会破坏现有标签"? [英] How to get rid of "would clobber existing tag"
本文介绍了如何摆脱“会破坏现有标签"?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在VSCodium中使用git,每次尝试拉git时都会抱怨.
I'm using git in VSCodium and each time I try to pull git is complaining.
查看我看到的日志
> git pull --tags origin master
From https://github.com/MY/REPO
* branch master -> FETCH_HEAD
! [rejected] latest -> latest (would clobber existing tag)
9428765..935da94 master -> origin/master
使用-force
进行命令将有助于下次使用.
Doing the command with --force
helps until the next time.
我不清楚这里出了什么问题.发生了什么事,我该如何解决这个问题?
It's unclear to me what's going wrong here. What happened and how can I resolve this issue?
我的意思是:除了破坏我的本地仓库并再次克隆外.
I mean: Besides trashing my local repo and cloning again.
推荐答案
您应使用远程标签更新本地标签:
You should update your local tags with remote tags:
git fetch --tags -f
然后再次拉动.
这篇关于如何摆脱“会破坏现有标签"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文