Skip to content

Instantly share code, notes, and snippets.

@yakovkhalinsky
Last active January 30, 2020 22:01
Show Gist options
  • Save yakovkhalinsky/af69e1b9bb8eedc5d1140b7840daef47 to your computer and use it in GitHub Desktop.
Save yakovkhalinsky/af69e1b9bb8eedc5d1140b7840daef47 to your computer and use it in GitHub Desktop.
Prune local GIT branches that are merged into origin master
git branch --merged master | grep -v '^[ *]*master$' | xargs git branch -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment