Update migration script: Also reset master to new origin's master branch.