· 原发布于 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 :

所有评论 0
@hackerpie
成长,折腾,保持单纯
准则 博客 联系 反馈 © 2025 Geeknote