gitz icon indicating copy to clipboard operation
gitz copied to clipboard

Remove all local branches with no remote

Open rec opened this issue 4 years ago • 0 comments

@paulcallahan writes:

Also, how about removing all local branches with no remote? what I use now:

git fetch --all -p; git branch -vv | grep ": gone]" | awk '{ print $1 }' | xargs -n 1 git branch -D

rec avatar Aug 28 '19 16:08 rec