Skip to content

Instantly share code, notes, and snippets.

@LucaColonnello
Forked from canhnt/git-delete-local-tag.sh
Created November 12, 2018 13:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LucaColonnello/cd4fb4ba2d1d7efef8166f09b09fe185 to your computer and use it in GitHub Desktop.
Save LucaColonnello/cd4fb4ba2d1d7efef8166f09b09fe185 to your computer and use it in GitHub Desktop.
Delete local tags that do not exist in remote
git fetch --prune origin "+refs/tags/*:refs/tags/*"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment