I tend to accumulate lots of branches as I'd do one branch per feature. When cleaning up, I'd like to
delete all branches, which have been merged.
I could use
$ git branch -d (which was merged already?) ^C
$ git branch --merged # let's find out
$ # Now run git branch -d with each of the branches.
This kind of question has already been discussed,
git branch --merged | grep -v "*" | xargs -n 1 git branch -d
I could think of:
$ git branch -d --merged # no need to specifiy a branch iff --merged is given with -d
$ git branch --delete-merged # comes as an new extra option, doesn't clutter other commands
$ git branch -d keyword-for-all-merged-branches
Before starting such a feature, I'd like to hear input of others.