Is there an equivalent process for git reset--hard . Let suppose for some reason my local repo got messed up . I want to do a git reset and reset my local repo history same as the remote one

Is there an equivalent process for git reset–hard . Let suppose for some reason my local repo got messed up . I want to do a git reset and reset my local repo history same as the remote one .