How can I delete all Git branches which have been merged?

后端 未结 30 1414
离开以前
离开以前 2020-11-22 14:22

I have many Git branches. How do I delete branches which have already been merged? Is there an easy way to delete them all instead of deleting them one by one?

30条回答
  •  感动是毒
    2020-11-22 15:16

    You can use git-del-br tool.

    git-del-br -a
    

    You can install it via pip using

    pip install git-del-br
    

    P.S: I am the author of the tool. Any suggestions/feedback are welcome.

提交回复
热议问题