Visual Studio代码 - 删除在GitHub上删除的仍然显示在VS代码中的分支? [英] Visual Studio Code - remove branches deleted on GitHub that still show in VS Code?

查看:649
本文介绍了Visual Studio代码 - 删除在GitHub上删除的仍然显示在VS代码中的分支?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在VSCode中,在执行pull请求并删除GitHub上的分支后,该分支仍然显示在Visual Studio代码中。如果我选择分支,它会按预期发出错误。



如何从VSCode中删除这些现在已删除的分支 - 我可以自动执行它吗?

解决方案显然,这个功能是有意的。我发现删除所有从Github删除的远程分支的正确方法是运行以下命令。

  git fetch --prune 

然后重新启动visual studio以从命令选项板中删除分支


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.

How do I remove these now deleted branches from VSCode - can I do it automatically?

解决方案

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

这篇关于Visual Studio代码 - 删除在GitHub上删除的仍然显示在VS代码中的分支?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆