Skip to content

Instantly share code, notes, and snippets.

@EarlOfEgo
Created August 22, 2016 08:53
Show Gist options
  • Save EarlOfEgo/089672a8e688495bb64e88dc0f8eaff3 to your computer and use it in GitHub Desktop.
Save EarlOfEgo/089672a8e688495bb64e88dc0f8eaff3 to your computer and use it in GitHub Desktop.
git branch --merged develop | grep -v master | grep -v develop | grep -v "\*" | xargs -n 1 git branch -d
@EarlOfEgo
Copy link
Author

git fetch -p && git branch -vv | awk '/: gone]/{print $1}' | xargs git branch -D

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