Important: If you have any local changes, they will be lost. With or without --hard option, any local commits that haven't been pushed will be lost.[*] If you have any files that are not tracked by Git (e.g. uploaded user content), these files will not be affected.
git fetch --all
Then, you have two options:
git reset --hard origin/master
OR If you are on some other branch: