📅  最后修改于: 2022-03-11 14:56:41.410000             🧑  作者: Mango
# set this alias in git.config
git config --global alias.gone "! git fetch -p && git for-each-ref --format '%(refname:short) %(upstream:track)' | awk '\$2 == \"[gone]\" {print \$1}' | xargs -r git branch -D"
# then run
git gone