以下の内容はhttps://iww.hateblo.jp/entry/20220216/gitより取得しました。


git push でエラーがでたとき

git push でエラーが出たとき

hint: Updates were rejected because the tag already exists in the remote.

リモート側とこっち側とで、同名だけど別のタグがあるとエラーになるらしい。

で、タグをpullなりfetchなりすれば良いらしいけど、それもエラーになることがある

$ git pull --tags
tekito@hogehoge's password:
From ssh://hogehoge/var/lib/git/example
 ! [rejected]          release-Ver0.01 -> release-Ver0.01  (would clobber existing tag)

$ git fetch --tags
tekito@hogehoge's password:
From ssh://hogehoge/var/lib/git/example
 ! [rejected]          release-Ver0.01 -> release-Ver0.01  (would clobber existing tag)


stackoverflow.com
そういうときは 強制的にfetchすれば良いらしい。

$ git fetch --tags -f
tekito@hogehoge's password:
From ssh://hogehoge/var/lib/git/example
 t [tag update]        release-Ver0.01 -> release-Ver0.01

gitはわからん




以上の内容はhttps://iww.hateblo.jp/entry/20220216/gitより取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14