`git restore -S` を使う。 ```bash git restore -S <file> # long git restore --staged <file> # v2.23以前 git reset HEAD <file> ``` HEADがない場合 ```bash git rm --cached <file> ```