You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
I've got several branches that I've worked on that have been tracked on origin.
The branches have been merged into master and have been deleted on origin.
If I use the 'Fetch' option and select the 'Purge' option, I can see that branches that have been removed on origin.
But the list of branches I see locally still exist.
I can see that at this stage, there's no difference between a local branch that has not been pushed to origin and a branch that had previously been pushed to origin but is now deleted on origin.
Is there a way to keep this in sync in some way?
By that I mean, if the branch is deleted on origin, then really delete it locally, including the tracking branch data (I think that's what the list of branches is in SourceTree under WORKSPACE - not the Remote branches).
I'm on MacOS using SourceTree 2.7.3 (169) with the dark theme.
Git has a default disposition of keeping data unless it’s explicitly thrown away. Prune will only remove the remote-tracking references, not the local branch itself.
There is a request to have the feature to sync removed remote branches with local ones, SRCTREEWIN-8631. This one if for Windows, I could not find one for Mac, but add a comment that you would like to see this functionality on Sourcetree for Mac too.