Skip to content

Instantly share code, notes, and snippets.

@J-Swift
Created August 19, 2020 15:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save J-Swift/6086ee0fd99dff9413ed86e4e3fbc6fb to your computer and use it in GitHub Desktop.
Save J-Swift/6086ee0fd99dff9413ed86e4e3fbc6fb to your computer and use it in GitHub Desktop.
Delete merged git feature branches in powershell
git branch --merged | Select-String -Pattern 'feature' | %{ git branch -d $_.Line.Trim() }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment