Normally, when you start working on some new feature, you create a new branch from the default branch (usually called master) and work inside it.
When the work is done – you merge your branch inside master and create a new one to work on the next feature.
Regardless of whether you are working with a local or remote Git repository, it will be a good practice to always remove unnecessary branches to prevent your repository from becoming a garbage. (more…)