Tax-gain harvesting is the deliberate realization of a long-term capital gain in a year when the taxpayer's income is low enough that the gain is taxed at 0% or at an unusually low rate. Published sources also call it simply gain harvesting; the two names describe the same manoeuvre, and the "tax-" prefix exists mostly to mirror tax-loss harvesting, which is its opposite number. Where tax-loss harvesting captures a loss and lowers basis, tax-gain harvesting captures a gain and raises it.
The move is almost always paired with an immediate repurchase, so the investor's holdings are unchanged once the trade settles and only the cost basis has moved. Nothing in the tax code prevents that repurchase, which is the structural feature the whole strategy rests on.