git blame on windows reports “fatal: no such path in HEAD”

后端 未结 3 918
名媛妹妹
名媛妹妹 2021-02-07 07:20

When I run git blame on a file in a folder e,g,:

git blame Foo/FileA.txt

it returns

fatal: no such path \'Foo/FileA.txt\' in HEAD

3条回答
  •  [愿得一人]
    2021-02-07 07:34

    Another possibility is that the file or a containing directory are a symbolic link. You can use ls -l to verify this is the case. Try to blame the file in its original location instead.

提交回复
热议问题