List of all git local branches starting with a line
I want to list all local branches (eventually delete, but for the sake of safety ...) that ONLY start with abc. The point is that such works. But if a branch does not start with "abc", it will list ALL branches. what i dont want to do (deleting all my local branches)
git for-each-ref --format="%(refname:short)" refs/heads/abc\* | xargs git branch --list
+3
source to share