0
0

More than 1 year has passed since last update.

他人数で開発しているrepoのtagsを削除する方法

Posted at

他人数で開発しているrepoのtagsを削除しても、復活されることに遭遇したことあるでしょうか?

理由

①開発メンバーのローカルのtagsが削除されてなく、Source Treeなどを使う際にpushすると、復活されます
②BitriseなどCIツールのキャッシュで残ってしまって、何かしらのタイミングでpushされます

対策

①Github上でいらないtagsを消す
②メンバーのローカルのtagsを消してもらう
git tag -l | xargs git tag -d
③remoteからもう一回fetch
git fetch origin
④ローカルにいらないtagあるのか確認
git tag -l
⑤使っているCI/CDツールのキャッシュをクリア

参考

https://stackoverflow.com/questions/45681091/how-do-i-stop-users-from-pushing-all-tags-git-push-tags
https://community.atlassian.com/t5/Sourcetree-questions/Can-you-please-make-the-default-status-of-quot-Push-all-tags/qaq-p/971859

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0