Working within branches separated from the master is fundamental.
See how to create a branch using git
But once we have completed our modifications, it is excellent to maintain an accurate cleaning.
So, you have to learn how to use git to delete a branch.
Git delete branch
All you have to do is open your console and type:
git branch -d branch_name
Make sure you no longer need the changes made in that branch