Advertisement
Guest User

Untitled

a guest
Aug 24th, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. # Delete all branches that contain 'search_keyword'
  2. git branch | grep 'search_keyword' | xargs git branch -D
  3.  
  4. # Delete all branches that have already merged into master or staging
  5. git branch --merged | egrep -v "(^\*|master|staging)" | xargs git branch -D
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement