📌  相关文章
📜  git delete 本地分支 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:35.113000             🧑  作者: Mango

代码示例6
$ git for-each-ref --format '%(refname:short) %(upstream:track)' |
  awk '$2 == "[gone]" {print $1}' |
  xargs -r git branch -D

Deleted branch fix-typo (was 7b57d4f).
Deleted branch grammar-fix (was 01257bd).