Skip to content

Instantly share code, notes, and snippets.

@Rebolon
Created September 20, 2017 08:00
Show Gist options
  • Save Rebolon/f2a5cee2ef1df06ecc65beb7f8d5f8b5 to your computer and use it in GitHub Desktop.
Save Rebolon/f2a5cee2ef1df06ecc65beb7f8d5f8b5 to your computer and use it in GitHub Desktop.
clean git branch already merged
!git branch --merged | grep -v '\*' | xargs -n 1 git branch -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment