I followed the instructions given in this SO question to move recently committed changed to a branch instead.
In short, I did the following on my local repo,
git branch newbranch
git reset --hard HEAD~3 # Go back three commits
git checkout newbranch
My remote repo (which only I access) however still has the commits in master.
I can't at present push the changes to remote because the local repo is missing some commits and it asks me to merge in changes through a pull.
How can I get the remote repo to reflect the new branch?