当前位置:   article > 正文

切换分支,报错:pathspec ‘xxx’ did not match any file(s) known to git_pathspec did not match any file(s) known to gi

pathspec did not match any file(s) known to gi

远程分支已经在 gitlab客户端手动创建,使用开发工具拉取后切换新分支报错“pathspec ‘xxx’ did not match any file(s) known to git”

解决方案

1.查看分支

        git branch -a

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

        git fetch

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

        git checkout xxx

4.签出后检查一下当前分支

        git branch

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/小舞很执着/article/detail/927344
推荐阅读
相关标签
  

闽ICP备14008679号