jwallis
jwallis

Reputation: 95

Sourcetree caches old branches that no longer exist on github. I do not want this

(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

Answers (1)

Seby Pudilic
Seby Pudilic

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

Related Questions