LoginSignup
0

More than 3 years have passed since last update.

localの特定のgit branch のみを削除する方法

Last updated at Posted at 2019-04-22
$ git branch
hoge-1
hoge-2
hoge-3
hoge-4
fuga-1
fuga-2
fuga-3

たくさんのbranchが残っててうざったい...すべてまとめて消したい...

そんなあなたに魔法の言葉!

$ git branch | grep fuga | xargs git branch -D

これで fuga が含まれるブランチを全て一発削除してくれる!(typo注意

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