Skip to content

Instantly share code, notes, and snippets.

@rdrobinson3
Created August 7, 2014 10:38
Show Gist options
  • Save rdrobinson3/6c1947bb2df5ee27e1cd to your computer and use it in GitHub Desktop.
Save rdrobinson3/6c1947bb2df5ee27e1cd to your computer and use it in GitHub Desktop.
Delete branches that have merged into master
alias rm-merged-local="git fetch --prune && git branch --merged master | \grep -v 'master' | xargs git branch -D"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment