Skip to content

Instantly share code, notes, and snippets.

@hisui
Created November 10, 2016 03:26
Show Gist options
  • Save hisui/512594603db1477a77848d794f4cde58 to your computer and use it in GitHub Desktop.
Save hisui/512594603db1477a77848d794f4cde58 to your computer and use it in GitHub Desktop.
git fetch --all --prune
git branch -r --merged | grep feature | ruby -pane'gsub /^\*origin\//, ""' | xargs git push origin --delete
git branch -r --merged | grep fix | ruby -pane'gsub /^\*origin\//, ""' | xargs git push origin --delete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment