Git

git reset --hard — what it does

The command:

git reset --hard <target>

moves your current branch’s HEAD to <target>
and resets both your staging area and working directory to match it.