First fetch the
git fetch --all than git reset --hard origin/<branch_name>
git fetch downloads the latest from remote without trying to merge or rebase anything.
git reset resets the master branch to what you just fetched. The
--hard option changes all the files in your working tree to match the files in