1
0

More than 3 years have passed since last update.

ローカルブランチを一括削除するコマンド

Posted at
ローカルブランチを一括削除する(ただし現在チェックアウト中のブランチは削除されない)
git branch | xargs git branch -D
マージ済みかつブランチ名にfeatureが含まれるブランチを削除する
git branch --merged | grep feature | xargs git branch -d
ブランチ名にfeatureが含まれるブランチを削除する
git branch | grep feature | xargs git branch -d
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