【发布时间】:2019-09-24 07:20:09
【问题描述】:
我想删除所有不需要的本地 Git 分支,但 this guide 我发现在线使用 Bash。什么是更 Windows 原生的方法?
【问题讨论】:
标签: git powershell
我想删除所有不需要的本地 Git 分支,但 this guide 我发现在线使用 Bash。什么是更 Windows 原生的方法?
【问题讨论】:
标签: git powershell
使用 select-string as a replacement for grep 和 PowerShell xargs replacement 这对我有用
,@( git branch -vv | select-string -Pattern 'origin/.*: gone]' | %{$_.toString().split(' ')[2].trim()} ) | %{&"git" "branch" "-d" $_}
【讨论】: