Skip to content

Instantly share code, notes, and snippets.

@gringoh
Created June 15, 2021 11:04
Show Gist options
  • Save gringoh/edf33af477208469f563cc0ed06c7835 to your computer and use it in GitHub Desktop.
Save gringoh/edf33af477208469f563cc0ed06c7835 to your computer and use it in GitHub Desktop.
[Git: Delete multiple branches] #git

Delete multiple git branches

Delete all branches with fix prefix

git branch | grep fix | xargs git branch -D

Delete all branches with feat prefix

git branch | grep feat | xargs git branch -D
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment