If for whatever reason you do wish to also 'downgrade' packages while changing branches add an extra u to the pacman command: