LoginSignup
1
1

More than 1 year has passed since last update.

Gitで重要なブランチ(develop/master/main)以外のブランチを一括で削除する

Posted at

放っておくとブランチが溜まってしまう。
これ知るまで、何回もgit branch -D xxxしてた。
便利なので使ってください。
Gitで重要なブランチ(develop/master/main)以外のブランチを一括で削除するコマンド

git branch | grep -Ev "master|develop|main" | xargs git branch -D

参考

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