LoginSignup
4
2

More than 5 years have passed since last update.

fishでGit のマージ済みのブランチを一括削除する

Posted at

Git でマージ済みのブランチを一括削除する
http://qiita.com/kyanny/items/10a57a4f1d2806e3a3b8

の呪文がfishだと上手く動かなかった。

git branch --merged | grep -vE '^\*|master$|develop$' | xargs -I '{}' git branch -d '{}'

で動いた。%じゃなくて"{}"を使わないとダメっぽい。

4
2
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
4
2