Deleting local git branches that have been merged on the remote using PowerShell

This is useful but hard to find a PowerShell version of. I found it here:

git branch --merged | %{$_.trim()} | ?{$_ -notmatch 'develop' -and $_ -notmatch 'master'} | %{git branch -d $_}
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply