I would like my local branch to be identical to the remote one. When I pull from the remote one, I'm getting conflicts, and in this case I would like not to resolve them and just get the latest version from the remote branch.
To hard pull I use in my local branch:
git reset -- hard
git pull
Nevertheless, when pulling I'm getting the error:
Automatic merge failed; fix conflicts and then commit the result.
Why? How can I pull the remote branch with overwriting? I thought of a workaround to just delete my local branch and create a new one and then pull, but is there a better way?