error: pathspec ‘v0.11.1‘ did not match any file(s) known to git.

Posted 爱做梦的鱼

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了error: pathspec ‘v0.11.1‘ did not match any file(s) known to git.相关的知识,希望对你有一定的参考价值。

解决方法

1.首先我们看一下分支情况:

git branch -a

2.如果没有看到你想要的分支,先获取所有分支:

git fetch

3、切换到远程master分支:

git checkout origin/master

参考

Git使用之(pathspec master did not match any file(s) known to git)

以上是关于error: pathspec ‘v0.11.1‘ did not match any file(s) known to git.的主要内容,如果未能解决你的问题,请参考以下文章

error: pathspec ‘v0.11.1‘ did not match any file(s) known to git.

error: pathspec ‘v0.11.1‘ did not match any file(s) known to git.

问题解决error: pathspec ‘XXX‘ did not match any file(s) known to git

git切换分支报错:error: pathspec 'origin/XXX' did not match any file(s) known to git

git——创建分支后,切换分支报错(error: pathspec 'master' did not match any file(s) known to git)

Git使用之(pathspec master did not match any file(s) known to git)