First, you need to download the latest from remote without trying to merge or rebase anything using the below-given command.
$ git fetch --all
Then use the git reset command to reset the master branch to what you just fetched. But in this command, you need to use --hard option to change all the files in your working tree to match the files in origin/master.
$ git reset --hard origin/master