Last active
February 22, 2022 02:30
Delete merged branchs
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
#!/usr/bin/env bash | |
# delete branchs that were merged to main|develop|..... | |
git branch --merged | egrep -v "(^\*|main|develop|release/1.0.0)" | xargs git branch -d |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment