Created
April 28, 2019 17:48
-
-
Save kubadlo/c825f907680fd307779febc2aac0b1a2 to your computer and use it in GitHub Desktop.
Delete all branches in git except master
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
git branch | Select-String -NotMatch -Pattern "master" | %{ git branch -D $_.ToString().Trim() } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment