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

后端 未结 30 3427
太阳男子
太阳男子 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:46

    On Windows OS by default git is instaled with

    core.ignorecase = true
    

    This means that git repo files will be case insensitive, to change this you need to execute:

    \yourLocalRepo> git config core.ignorecase false
    

    you can find this configuration on .git\config file

提交回复
热议问题