How do I remove deleted Git branches from Visual Studio 2015

前端 未结 3 2087
面向向阳花
面向向阳花 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:09

    Visual Studio 2015 & 2017

    1. Open up Team Explorer and go to the Branches view.
    2. Locate the branch you want to delete. Make sure that you aren't checked out to that branch-you can't delete the branch you are currently working in.
    3. Right-click the branch name and select Delete. If you have unpublished changes, Visual Studio will ask and make sure you want to delete the branch so you don't possibly lose work

提交回复
热议问题