Automatically delete branches that have been merged
Add the following line to your git configuration:
$ git config alias.housekeeping
!f() { git checkout -q ${1:-main} && git branch --merged | grep -v ^* | xargs -n1 -r git branch --delete; }; f
After merging branches run: