Skip to content

Instantly share code, notes, and snippets.

@LucianBuzzo
Created September 3, 2019 12:15
Show Gist options
  • Select an option

  • Save LucianBuzzo/4baae6d79d8cea6c4d557cc271ef5f18 to your computer and use it in GitHub Desktop.

Select an option

Save LucianBuzzo/4baae6d79d8cea6c4d557cc271ef5f18 to your computer and use it in GitHub Desktop.
delete-merged-branches = "!f() { git checkout --quiet master && git branch --merged | grep --invert-match '\\*' | xargs -n 1 git branch --delete; git checkout --quiet @{-1}; }; f"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment