Visual Studio Code - remove branches deleted on GitHub that still show in VS Code?

后端 未结 10 1557
無奈伤痛
無奈伤痛 2021-01-29 20:50

In VSCode, after I do a pull request and delete the branch on GitHub, that branch still shows up in Visual Studio Code. If I select the branch, it gives an Error, as expected. <

10条回答
  •  醉酒成梦
    2021-01-29 21:04

    Apparently, this feature is intentional. I found out that a correct way to remove all remote branches that have been deleted from Github is to run the following command.

    git fetch --prune
    

    Then restart visual studio to remove the branches from the command palette

提交回复
热议问题