git在push時,報錯“hint: Updates were rejected because the tag already exists in the remote.”
這種情況,出現(xiàn)在我使用tag時,tag,刪除,tag……。
然后發(fā)現(xiàn)推代碼報錯如圖啦

截屏2021-08-02 下午4.07.02.png
自己從網(wǎng)上找到的解決辦法,就是執(zhí)行命令
$ git pull --tags
$ git pull --tags -f

截屏2021-08-02 下午4.09.36.png