Reputation: 95
(Sourcetree on Mac)
This has happened for years at multiple companies. I can't imagine it's something I'm doing wrong (or right), so perhaps it's a feature.
My coworker develops and pushes some code. I see the branch under Remotes in Sourcetree. She creates a PR. I merge it and delete the branch on github.com. I go back to Sourcetree and I still see the branch listed under Remotes. Weeks later it is still there. There are 2 things I can do:
or
Is this supposed to happen? There is an option "Keep backups on destructive operations" in the Sourcetree Settings. Maybe it's a feature?
Upvotes: 1
Views: 65
Reputation: 26
I don't think this is supposed to happen. Unfortunately, the only thing that works for me is to remove the remote repo and add it again. That way, it clears the cached branches.
Upvotes: 1