删除筛选出来的分支,比如fixed

git branch -D @(git branch | select-string  "fixed" | Foreach {$_.Line.Trim()})

 

除了master分支,其他都删除

git branch -D @(git branch | select-string -NotMatch "fixed" | Foreach {$_.Line.Trim()})

更多请看:https://dev.to/koscheyscrag/git-how-to-delete-all-branches-except-master-2pi0

相关文章:

  • 2022-12-23
  • 2021-07-11
  • 2022-03-05
  • 2021-11-22
  • 2022-12-23
  • 2021-08-12
  • 2021-10-03
  • 2021-08-11
猜你喜欢
  • 2022-01-20
  • 2022-12-23
  • 2022-12-23
  • 2022-01-23
  • 2022-01-17
  • 2022-12-23
相关资源
相似解决方案