· 原发布于 blog.hackerpie.com

Delete multiple git remote branches by prefixing all refs with a colon

This article shows how to delete multiple remote branches in Git.

git push origin :branch-1 :branch-2 [:other-branches]

Remember the colon :