Nov 10, 2023

[git] Delete all branches except master in windows

 Powershell command:

,@(git branch | Select-String -Pattern "[^(*?)\s? master]") | ForEach-Object{$_.Line.Trim()} | %{git branch -D $_}