Improve branch reset code to annihilate new tags