Skip to content

Instantly share code, notes, and snippets.

@amupoti
Created January 19, 2017 10:14
Show Gist options
  • Save amupoti/d255ae7dd7e23ba78ce81c3578f29ec2 to your computer and use it in GitHub Desktop.
Save amupoti/d255ae7dd7e23ba78ce81c3578f29ec2 to your computer and use it in GitHub Desktop.
#To delete local branches which have already been merged into 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