Skip to content

Instantly share code, notes, and snippets.

@4Giedrius
Created April 20, 2016 07:29
Show Gist options
  • Save 4Giedrius/41ab19dd5939308267bc7a72a475f770 to your computer and use it in GitHub Desktop.
Save 4Giedrius/41ab19dd5939308267bc7a72a475f770 to your computer and use it in GitHub Desktop.
Delete all local git branches which already been merged remotely
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