git fetch -p ; git branch -r | awk '{print $1}' | egrep -v -f /dev/fd/0 <(git branch -vv | grep origin) | awk '{print $1}' | xargs git branch -d
Created
July 7, 2022 12:26
-
-
Save anibalardid/0d2f31e169cdf9b6db2cb8585241406b to your computer and use it in GitHub Desktop.
Git Remove unused local branches
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment