簡體   English   中英

如何在Windows上刪除舊的本地Git分支?

[英]How to remove old local Git branches on Windows?

我想刪除所有不需要的本地Git分支,但我在網上找到的這個指南使用了Bash。 什么是更原始的Windows原生方法?

使用select-string替換grepPowerShell xargs替換這對我xargs

,@( git branch -vv | select-string -Pattern 'origin/.*: gone]' | %{$_.toString().split(' ')[2].trim()} ) | %{&"git" "branch" "-d" $_}

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM