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

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

    I got the same problem because I used git clone --depth=1, which implies --single-branch.

    Do a completed git clone will fix it.

提交回复
热议问题