In GitHub, Bitbucket, GitLab you can set feature branches to be deleted after a successful merge in development. If you work locally without a remote repository, I would like to set up my git like this.
So instead of:
git checkout development
git merge feature/#123
git branch -d feature/#123
only:
git checkout development
git merge feature/#123
My idea: It must be a GitHook!?