Visual Studio 2019 Team Explorer git 远程列表仍然包含已删除的分支

Visual Studio 2019 Team Explorer git remotes list still contains deleted branches

我正在使用 VS2019 和 Azure DevOps;当我完成拉取请求时,我将其设置为删除源分支。但是,这些已删除的分支仍然显示在遥控器下的团队资源管理器中;为什么会这样,我该如何摆脱它们?

运行 git fetch --prune 清理不再存在的远程分支。