Restore working tree files. Requires git version 2.23+. See also git checkout. More information: https://git-scm.com/docs/git-restore/.
git checkout
git restore {{path/to/file}}
git restore --source {{commit}} {{path/to/file}}
git restore .