How to prune deleted remote branches within Sourcetree



Situation: You’ve deleted some branches from your online repo but they don’t go away from your “Remotes” section in your Sourcetree sidebar.

So I just discovered how to resolve this and wanted to share the wealth.  See below:

  1. Click “Repository” in top menu.

  2. Click “Fetch”

  1. Check the “Fetch from all remotes” box

  2. Check the “Prune tracking branches no longer on remote(s)” box <- this is the key option

  1. Click OK.

That’s all folks.  I hope this helps you as much as it helped me.

Happy Coding! 🤓

Categories: Coding | My Blurbs | Wordpress