Search code examples
branching-and-mergingtortoisegit

When is it considered a good time to delete your local / remote feature branches?


I now have several branches that have all been merged into the master branch:

Ref Browser

I have yet to create a tag and officially release this edition.

So when is the best time to remove your merged branches? I noticed in TortoiseGit that when you merge the branch there is a check box for Delete Branch.

Thanks for your advice.


Solution

  • Depends on your workflow. But generally after merge.

    A common workflow is:

    • merge to develop (if you have a build server, see that the build is ok)
    • delete local branch and the tracking remote