Skip to content

Instantly share code, notes, and snippets.

@RainbowArray
Created May 7, 2016 22:56
Show Gist options
  • Save RainbowArray/19b5175176f669fc996b6d506e84e20c to your computer and use it in GitHub Desktop.
Save RainbowArray/19b5175176f669fc996b6d506e84e20c to your computer and use it in GitHub Desktop.
git branch -a | grep -v '8.0.x\|8.1.x\|8.2.x\| 2061377-151-reroll-wysiwyg-image-styles\|remotes' | xargs git branch -D
@RainbowArray
Copy link
Author

This got rid of all my old stale branches that I didn't need before, except for the the D8 core branches, remote and one branch I had just made for a reroll and didn't want to lose. This worked GREAT!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment