This is potentially a recipe for failure since merging is not guaranteed to succeed; I would recommend `git reset --hard origin/master` instead since as long as you have successfully checked out `master` and `origin/master` exists that will always succeed.