Skip to content

Instantly share code, notes, and snippets.

@msng
Created Sep 29, 2019
Embed
What would you like to do?
[alias]
delete-merged-branches = !git branch --merged master | grep -v -e \\* -e master -e develop | xargs git branch -d
delete-merged-remote-branches = !git fetch --all --prune && git branch -r --merged master | grep -v -e master -e develop | sed -e 's%/% %' | xargs -n 2 git push --delete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment