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:
- Click “Repository” in top menu.
-
Click “Fetch”
- Check the “Fetch from all remotes” box
-
Check the “Prune tracking branches no longer on remote(s)” box <- this is the key option
- Click OK.
That’s all folks. I hope this helps you as much as it helped me.
Happy Coding! 🤓