2022-05-30 Git 解決 would clobber existing tag 問題

問題

> 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

原因

我刪了原有的一個tag,然後重新創建了一個相同名字的。

解決方式

# 強制刷新一下本地的tags
$ git fetch --tags -f

原文: Git 解決 would clobber existing tag 問題

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章