Skip to content

Instantly share code, notes, and snippets.

@yu1ec
Forked from canhnt/git-delete-local-tag.sh
Created September 12, 2018 02:13
Show Gist options
  • Save yu1ec/5d1081203dd17181f49087b96cbd8dd2 to your computer and use it in GitHub Desktop.
Save yu1ec/5d1081203dd17181f49087b96cbd8dd2 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