Skip to content

Instantly share code, notes, and snippets.

@mknkisk
Created January 18, 2017 06:43
Show Gist options
  • Save mknkisk/25a35970f7c22720a575e78aaf005972 to your computer and use it in GitHub Desktop.
Save mknkisk/25a35970f7c22720a575e78aaf005972 to your computer and use it in GitHub Desktop.
git branch -r --merged master | grep -v -e master -e release -e staging/ | sed -e 's% *origin/%%' | xargs -I% git push --delete origin %
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment