Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save karol-pawlowski/5eac31be59dd7c68c6200f657d67bcda to your computer and use it in GitHub Desktop.
Save karol-pawlowski/5eac31be59dd7c68c6200f657d67bcda to your computer and use it in GitHub Desktop.
Write-Host "Removing local branches that were merged to develop"
git branch --merged | Where { $_ -NotMatch "(^\*|master|develop|help|remote)" } | %{git branch -d $_.Trim()}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment