Skip to content

Instantly share code, notes, and snippets.

@pedrokermitgoncalves
Created July 9, 2020 14:08
Show Gist options
  • Save pedrokermitgoncalves/029606c657945c46471530ca0000ecd7 to your computer and use it in GitHub Desktop.
Save pedrokermitgoncalves/029606c657945c46471530ca0000ecd7 to your computer and use it in GitHub Desktop.
Delete local branches merged in remote
git branch --merged | egrep -v "(^\*|master|develop)" | xargs git branch -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment