git branch
Table of Contents
Cleanup branches howto
$ git checkout master
# Show targets before deleting
$ git branch --merged
$ git branch -d old-merged-feature
# +-- short for '--delete'
$ git branch --no-merged
$ git branch -D old-abandoned-feature
# +-- short for '--delete --force'
# Delete all merged, except master
$ git branch --merged | grep -vE '(master|develop)' | xargs git branch -d