1

在 SourceTree 中,我在自定义目录下的目录树中有很多分支,如下所示:

> File Status
> Branches
   >completed_branches
      >branch1
      >branch2
      >branch3
      ...
> Tags
> Remotes
> Stashes

是否有 git 命令或 SourceTree 按钮来删除所有名为 的分支/completed_branches/*

理想情况下,我可以右键单击目录树中的文件夹并单击删除,但这不存在。

4

1 回答 1

3

您可以运行该命令,使用 抓取所有分支completed_branches,然后对其执行删除命令。

 git branch | grep "completed_branches" | xargs git branch -D
于 2015-12-02T16:20:06.260 回答