grep -v: -v 反转查找 Git remove branches named without master git branch -D `git branch | grep -v -E *master*`