Git: cannot checkout branch - error: pathspec '…' did not match any file(s) known to git

后端 未结 30 3453
太阳男子
太阳男子 2020-11-27 23:54

I\'m not sure why I\'m unable to checkout a branch that I had worked on earlier. See the commands below (note: co is an alias for checkou

30条回答
  •  无人及你
    2020-11-28 00:44

    Git Windows users beware - without the --icase-pathspecs or GIT_ICASE_PATHSPECS = 1 env var setting, that git pathspecs will be case-sensitive, in which case

    git checkout origin/FooBranch "Some/Path/To/File.txt"
    

    is not the same as

    git checkout origin/FooBranch "some/path/to/file.Txt"
    

提交回复
热议问题