Skip to content

Instantly share code, notes, and snippets.

@cabloo
Last active February 27, 2016 01:17
Show Gist options
  • Save cabloo/20661f523fbadf865f32 to your computer and use it in GitHub Desktop.
Save cabloo/20661f523fbadf865f32 to your computer and use it in GitHub Desktop.
Git cleanup merged branches
git pull origin HEAD
# http://stevenharman.net/git-clean-delete-already-merged-branches
git branch --merged develop | grep -v "master" | grep -v "develop" | xargs -n 1 git branch -d
git branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment