Skip to content

Instantly share code, notes, and snippets.

@alexander-bobin
Last active August 29, 2015 14:23
Show Gist options
  • Select an option

  • Save alexander-bobin/bb335a969388c9efd883 to your computer and use it in GitHub Desktop.

Select an option

Save alexander-bobin/bb335a969388c9efd883 to your computer and use it in GitHub Desktop.
Git - delete all branches merged to master
git branch --merged master | grep -v "\* master" | xargs -n 1 git branch -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment