Instantly share code, notes, and snippets.
Awesome. Just what I was looking for. Thanks!
What is the license for this code?
If not copyrighted would you mind adding:
Not copyrighted -- provided to the public domain
git tag -l | xargs git tag -d
Won't that delete every local tag?
@julias-shaw yes it will
Isn't this the idea of pruning is to remove local tags that no longer exist on the remote?
This will make it so you're up to date with the remote 1:1.
If you want to keep your local clean though this is not for you.