Last active
July 14, 2016 08:03
-
-
Save mslabko/197c23d14ef62700751b to your computer and use it in GitHub Desktop.
Mass delete branches from repo which already included in mainline
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
by @kandy | |
git branch -a --merged mainline/develop|grep 'remotes/origin/'|grep -v 'master'|grep -v 'develop'|sed 's/ remotes\/origin\///' |xargs -n1 -I % git push origin :% |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment