I am having this problem where in VS2013 when I create a new branch from origin, the dropdown with the source branches lists ALL branches ever created. This includes branches that have long been deleted from both the local repo and the remote/origin repo.
How do I remove the deleted branches?
Visual Studio keeps these in a local cache.
You can run the following from a command prompt, then whenever you do a fetch from the Sync menu in Team Explorer, the branches will be pruned:
git config remote.origin.prune true
Seems like this should be set by default!
If you want to apply this system wide, you can use this:
git config --global remote.origin.prune true
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With