1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

CircleCIで存在しないはずの古いブランチを削除する

Last updated at Posted at 2019-08-19

TL;DR

  • 存在しないはず(既にマージされたとか削除済み)の、ブランチを削除
  • なんか、ブランチに残ってて気持ち悪い

対象読者

CircleCI 2.0以上

消したはずのブランチが何故か残っている

screenshot 2019-08-19 11.52.38.png

コマンドで確認しても存在しない

git branch --remote # (-r でも可)

# origin/issues/#568-spa-container
# origin/master
# origin/production
# origin/staging

削除手順

リモートにもローカルにもないリポジトリなのだし、深く悩まず削除:santa:

心当たり

多分、ビルドの途中で消したとか?(記憶にないけど)

削除の手順

  1. もう一度、同じ名前のブランチを作成
  2. CicleCIのjobが走るはずなのでjobをキャンセルする(キャンセルしなくてもいいかもしれない)
  3. 対象ブランチを削除
  4. 完了

はー すっきり:santa:

参考

1
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
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?