catch switches between branches that have the same githead