# Remove local branches that have gone remotes - https://stackoverflow.com/a/33548037/967115
git fetch -p && for branch in `git branch -vv | grep ': gone]' | awk '{print $1}'`; do git branch -D $branch; done
Created
October 12, 2017 17:26
-
-
Save BrianSigafoos/7f1aa286e42d9d2b63c893d531377681 to your computer and use it in GitHub Desktop.
Git tips
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment