Created
November 2, 2017 09:32
-
-
Save mleko/b1f25507b8285ae7cf362a44a04e980d to your computer and use it in GitHub Desktop.
Git remove merged branches
This file contains hidden or 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
#!/bin/sh | |
git branch --merged | egrep -v "(^\*|master|dev)" | xargs git branch -d |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment