Branches are part of the everyday development process and one of the most powerful features in Git. Once a branch is merged, it serves no purpose except for historical research. It is common and recommended practice to delete the branch after a successful merge.
This guide covers how to delete local and remote Git branches.
To delete a local Git branch use the
git branch command with the
git branch -d branch_name
Deleted branch branch_name (was 17d9aa0).
Read more at Linuxize