Skip to content

Instantly share code, notes, and snippets.

@amandiobm
Created January 20, 2020 17:21
Show Gist options
  • Save amandiobm/ce31e6e03495deffa9b59f4b7b10d016 to your computer and use it in GitHub Desktop.
Save amandiobm/ce31e6e03495deffa9b59f4b7b10d016 to your computer and use it in GitHub Desktop.
Delete local GIT branches that were deleted on remote repository
# https://medium.com/@kcmueller/delete-local-git-branches-that-were-deleted-on-remote-repository-b596b71b530c
`git branch -vv | grep ': gone]'| grep -v "\*" | awk '{ print $1; }' | xargs -r git branch -d`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment