I am trying to restore a file to a different directory given the file's relative filename:
git --work-tree some/directory restore -s HEAD ./numbers.txt
Yet, this command fails with error: pathspec './numbers.txt' did not match any file(s) known to git.
I am a bit puzzled because git restore, without the --work-tree option does not fail:
git restore -s HEAD ./numbers.txt
So, is it possible to use git --work-tree dir restore with a relative filename?