new gob function to switch branches on two matched repos