Tested on git version 2.27.0-rc1 (latest build from master branch on github) and 2.26.2 `git restore --staged file` on a newly created repository outputs error "fatal: could not resolve HEAD", but `git reset file` correctly unstages the file.
Tested on git version 2.27.0-rc1 (latest build from master branch on github) and 2.26.2 `git restore --staged file` on a newly created repository outputs error "fatal: could not resolve HEAD", but `git reset file` correctly unstages the file.