Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save skylock/5d00d27640d04219b3ad9752a89752de to your computer and use it in GitHub Desktop.
Save skylock/5d00d27640d04219b3ad9752a89752de to your computer and use it in GitHub Desktop.
git delete multiple brabches on remote using pattern
g branch -r --merged master | grep 'searchedBranch*' | sed 's/remotes\/origin\///' | xargs git push --delete origin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment