Remove old branches from git


/ Published in: Bash
Save to your folder(s)

For git-flow style workflow where you prefix branch names with initials "sc/branchname"


Copy this code and paste it in your HTML
  1. git branch --merged dev | grep 'sc/' | xargs git branch -d

Report this snippet


Comments


You need to login to view comments.