Visual Studio 2013 removes remote git branches

I had this problem when in VS2013, when I create a new branch from the source, the drop-down list with the source branches lists ALL branches ever created. This includes branches that have long been removed from both the local repo and the remote / source repository.

http://imgur.com/uxPZjVL

How to delete deleted branches?

+4
source share
1 answer

Visual Studio stores them in a local cache.

You can run the following from the command line, then whenever you make a selection from the synchronization menu in Team Explorer, the branches will be trimmed:

git config remote.origin.prune true

It looks like it should be installed by default!

, :

git config --global remote.origin.prune true
+2

All Articles