Skip to content

Instantly share code, notes, and snippets.

@BrianSigafoos
Created October 12, 2017 17:26
Show Gist options
  • Save BrianSigafoos/7f1aa286e42d9d2b63c893d531377681 to your computer and use it in GitHub Desktop.
Save BrianSigafoos/7f1aa286e42d9d2b63c893d531377681 to your computer and use it in GitHub Desktop.
Git tips
# 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment