Created
July 9, 2019 13:37
-
-
Save karol-pawlowski/7769ca602f585e589abdbfb848054a0e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Write-Host "Removing remote branches from origin that were merged to develop" | |
git branch -r --merged | Where { $_ -NotMatch "(^\*|master|develop|help|remote)" } | %{ git push origin --delete $_.Trim().replace('origin/', '')} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment