tjrobinson.net

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

April 27, 2017

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 $_}

Tom Robinson

I'm a software developer and this is my technology and coding blog.