Created
December 30, 2018 14:55
-
-
Save iamthemovie/046bc3899c3ce4616591c412ce5a74df to your computer and use it in GitHub Desktop.
Remove branches (powershell)
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
Delete all branches but Master and Infra | |
$(git branch).split("`r`n").trim().trim('* ') | foreach { if($_ -ne 'master' -And $_ -ne 'infra') { git branch -d $_ } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment