Delete merged local git branch & tag in one command
Feb 3, 2022
Shell
git branch --merged | xargs git branch -d
git tag --merged | xargs git tag -d
PowerShell
git branch --merged | %{git branch -d $_.trim()}
git tag --merged | %{git tag -d $_.trim()}