It was also a bit pointless to checkout a new branch just to switch back. The whole thing should be
git branch some-new-branch-name
git reset --hard origin/master
git checkout some-new-branch-name