@echo off if "%1"=="" ( echo usage: git del-branches ^ ) else ( for /f "usebackq" %%b in (`git branch --list %1`) do ( git branch -d %%b ) )