Delete all local Git branches that have been merged into the current branch

2019-08-23
  git branch --merged | egrep -v "(^\*|master|staging|stage|develop|dev)" | xargs git branch -d