`git restore` を使う。 ```bash git restore <file> # v2.23以前 git checkout <file> ```