Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Delete all branches that contain 'search_keyword'
- git branch | grep 'search_keyword' | xargs git branch -D
- # Delete all branches that have already merged into master or staging
- git branch --merged | egrep -v "(^\*|master|staging)" | xargs git branch -D
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement