Skip to content

Instantly share code, notes, and snippets.

@SyllaJay
Created July 18, 2016 01:54
Show Gist options
  • Select an option

  • Save SyllaJay/171f7a239cd3d16ed561ba548f5c127d to your computer and use it in GitHub Desktop.

Select an option

Save SyllaJay/171f7a239cd3d16ed561ba548f5c127d to your computer and use it in GitHub Desktop.
#!/bin/bash
for merged in `git branch --merged | grep -v master`; do git branch -d $merged; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment