tg update: Support updating from remote branches