Created
November 18, 2019 14:50
-
-
Save sigismund/507a0bb635bae875f174f3a878b46a1e to your computer and use it in GitHub Desktop.
Cleanup of already merged branches. Excludes develop & master branch
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 -r --merged | grep -v '\\*\\|master\\|develop' | sed 's/origin\///' | xargs -n 1 git push --delete origin |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment