📜  git 删除未跟踪的分支 - Shell-Bash 代码示例

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

代码示例1
# this is powershell script for Windows execution

git checkout master; 
git remote update origin --prune; 
git branch -vv | Select-String -Pattern ": gone]" | % { $_.toString().Trim().Split(" ")[0]} | % {git branch -d $_}