Visual Studio 2013删除删除的git分支 [英] Visual Studio 2013 remove deleted git branches

查看:291
本文介绍了Visual Studio 2013删除删除的git分支的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到这个问题,在VS2013中,当我从原点创建一个新分支时,源分支的下拉列表中列出了所有创建的分支。这包括很久以前从本地回购和远程/回溯回购中删除的分行。 $ b

a>



如何删除已删除的分支? Visual Studio将这些保存在本地缓存中。



您可以从命令提示符运行以下命令,然后每当您从团队资源管理器的同步菜单中进行提取时,将被修剪:

  git config remote.origin.prune true 

似乎应该在默认情况下设置!



如果你想应用这个系统范围,你可以使用这个:

  git config --global remote.origin.prune true 


I am having this problem where in VS2013 when I create a new branch from origin, the dropdown with the source branches lists ALL branches ever created. This includes branches that have long been deleted from both the local repo and the remote/origin repo.

How do I remove the deleted branches?

解决方案

Visual Studio keeps these in a local cache.

You can run the following from a command prompt, then whenever you do a fetch from the Sync menu in Team Explorer, the branches will be pruned:

git config remote.origin.prune true

Seems like this should be set by default!

If you want to apply this system wide, you can use this:

git config --global remote.origin.prune true

这篇关于Visual Studio 2013删除删除的git分支的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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