Answers for "git delete branches that aren't on remote"

3

delete local branches not on remote

git branch -vv | grep ': gone]'|  grep -v "\*" | awk '{ print $1; }' | xargs -r git branch -D
Posted by: Guest on May-06-2020
0

git delete branches that aren't on remote

git fetch --all --prune
Posted by: Guest on December-31-2020

Code answers related to "git delete branches that aren't on remote"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language