How do I remove deleted Git branches from Visual Studio 2015

前端 未结 3 2070
面向向阳花
面向向阳花 2021-02-18 17:27

Visual Studio continues to show any branch I\'ve pulled, even after that branch has been deleted (and I do not have it as the selected branch).

  • \"git fetch -
3条回答
  •  误落风尘
    2021-02-18 18:32

    I had remote branches that would not go away even after they were deleted on the server. This tip about setting "Prune remote branches" worked for me. I found it here.

    Go to Team Explorer, and click Home button. Then Settings > Repository Settings, and set "Prune remote branches during fetch" drop-down to True. Don't forget to click "Update" button to save your edit.

    After changing the setting I did a fetch on one of the deleted branches and all of the deleted branches disappeared.

提交回复
热议问题