Skip to content

Instantly share code, notes, and snippets.

@marcosrjjunior
Last active February 22, 2022 02:30
Delete merged branchs
#!/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