What is your production take on Reset local repository branch to be just like remote?

Pulled from common Stack Overflow threads:

What is your modern answer, and where does the usual advice break down at scale?

Sarah :grinning_face_with_smiling_eyes:

git fetch origin && git switch my-branch && git reset --hard origin/my-branch is the clean production answer.

Sora