Skip to content

Instantly share code, notes, and snippets.

@aprabaldi
Created March 9, 2018 16:42
Show Gist options
  • Save aprabaldi/2283ab942863a80a27325fd7779bb8da to your computer and use it in GitHub Desktop.
Save aprabaldi/2283ab942863a80a27325fd7779bb8da to your computer and use it in GitHub Desktop.
Remove local git merged branches except from master
alias git.clean.merged.branches="git branch --merged | grep -v "master" >/tmp/merged-branches && vi /tmp/merged-branches && xargs git branch -d </tmp/merged-branches"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment