If you use posh-git, here's a command to clean up all your merged local branches:
git branch --merged | where {$_ -notmatch 'master'} | % {git branch -d $_.Trim()}
Photo by Jan Loyde Cabrera on Unsplash
If you use posh-git, here's a command to clean up all your merged local branches:
git branch --merged | where {$_ -notmatch 'master'} | % {git branch -d $_.Trim()}