Commit to switch branches