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


RSS Icon Subscribe to comments

You need to login to post a comment.