Skip to content

Instantly share code, notes, and snippets.

@oleghnidets
Created May 27, 2020 13:04
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 oleghnidets/e576893300dbac7053dbe507eb176e8f to your computer and use it in GitHub Desktop.
Save oleghnidets/e576893300dbac7053dbe507eb176e8f to your computer and use it in GitHub Desktop.
Prune local git tags that don't exist on remote
# https://demisx.github.io/git/2014/11/02/git-prune-local-tags-dont-exist-remote.html
git tag -l | xargs git tag -d && git fetch -t
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment