0


报错:pathspec ‘xxx‘ did not match any file(s) known to git

escode

中进行分支切换时报如下错误

PS >git checkout xxx
error: pathspec 'xxx' did not match any file(s) known to git

远程分支已经在

gitlab

客户端手动创建,在

escode

中也使用了拉取之类的操作,但是切换分支时依然报错。

解决方案

查看分支

>git branch -a

如果需要签出的分支不在列表中,则通过命令进行拉取

>git fetch

拉取之后再查看一下分支,可以看到刚刚创建的新分支,执行签出命令

>git checkout xxx

签出后检查一下当前分支

>git branch
标签: git

本文转载自: https://blog.csdn.net/gongm24/article/details/140050310
版权归原作者 死牛胖子 所有, 如有侵权,请联系我们删除。

“报错:pathspec ‘xxx‘ did not match any file(s) known to git”的评论:

还没有评论