How to reset a git folder back to HEAD (last commit)

git restore --source=HEAD --staged --worktree -- folderName https://stackoverflow.com/questions/15404535/how-to-git-reset-hard-a-subdirectory

NICE!