问题解决error: pathspec ‘XXX‘ did not match any file(s) known to git
Posted 看,未来
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了问题解决error: pathspec ‘XXX‘ did not match any file(s) known to git相关的知识,希望对你有一定的参考价值。
文章目录
问题复现 :
① 在本地分支切换到同事新创建的分支:
git checkout xxx
② 报错:
error: pathspec 'XXX' did not match any file(s) known to git
解决方法:
① 查看本地的所有的分支中是否有同事新创建的分支:
git branch -a
② 如果没看到,那么执行以下操作,这步是获取所有分支:
git fetch
③ 切换到远程同事分支:
git checkout origin/XXX
以上是关于问题解决error: pathspec ‘XXX‘ 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 ‘v0.11.1‘ did not match any file(s) known to git.
git——创建分支后,切换分支报错(error: pathspec 'master' did not match any file(s) known to git)
gitgit 使用 Submodule 管理子模块 报错 pathspec did not match any files