Utility to tag HEAD and the upstream commit after a rebase