I'm probably too stubborn, but I wanted to find a solution that didn't include deleting the repo and cloning it again - and so it is.
My bad tag was ◊v2.2.29.
Adding the link to .git / packed-refs did the trick for me. Just duplicate (or add) a line in the packed refs file and change the tag to your problem one, in the format:
1ea677c29c1db49a284b3a0b44a5e96fda873da2 refs / tags / ◊v2.2.29
You do not need to know the identifier of the real object for this tag, but you need a valid number from your project. In my example, 1ea677c29c1db49a284b3a0b44a5e96fda873da2 is just the identifier of the object of another tag that I had (it doesn’t matter, of course, just select one from the other line in the same file), and the problem will be solved.
Side note: If you specify an identifier for an object that does not exist at all, git will either complain about it as invalid or just treat it as a new tag, depending on whether you got the structure correctly.
shuki source share