Skip to content

Instantly share code, notes, and snippets.

@mkropat
Last active August 20, 2018 16:20
Show Gist options
  • Save mkropat/25b74923003f7090ef2bd6ea835f07f2 to your computer and use it in GitHub Desktop.
Save mkropat/25b74923003f7090ef2bd6ea835f07f2 to your computer and use it in GitHub Desktop.
git branch --merged | foreach Trim | sls -NotMatch -Pattern '^[*]|\bmaster$' | foreach { git branch -d $_ }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment