Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Remove merged branch
git branch --merged master | grep -v "\* master" | grep -v "develop" | xargs -n 1 git branch -d
git branch -r --merged master | grep -v ">" | grep -v "develop" | grep -v "master" | sed 's/ *origin\///' | xargs -n 1 git push origin --delete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.