Skip to content

Instantly share code, notes, and snippets.

@adhipg
Created October 2, 2012 10:20
Show Gist options
  • Save adhipg/3818038 to your computer and use it in GitHub Desktop.
Save adhipg/3818038 to your computer and use it in GitHub Desktop.
Delete all branches that have already been merged into currently checked out branch
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